bitmapper 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/bitmapper/bit_mapper_wrap.c +1 -1
- data/ext/bitmapper/bitmapper.c +1 -1
- metadata +1 -1
data/ext/bitmapper/bitmapper.c
CHANGED
@@ -17,6 +17,7 @@ VALUE bm_init(VALUE self, VALUE len){
|
|
17
17
|
*/
|
18
18
|
void bm_free(void *p){
|
19
19
|
free_map((Bitmapper*)p);
|
20
|
+
if(p != NULL) free(p);
|
20
21
|
}
|
21
22
|
|
22
23
|
/*
|
@@ -28,7 +29,6 @@ VALUE bm_reset(VALUE self){
|
|
28
29
|
VALUE len;
|
29
30
|
Data_Get_Struct(self, Bitmapper, map);
|
30
31
|
free_map(map);
|
31
|
-
map = create_map();
|
32
32
|
len = rb_iv_get(self, "@index_len");
|
33
33
|
allocate_map(map, FIX2INT(len));
|
34
34
|
return self;
|