bitmapper 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,7 +46,7 @@ void free_map(Bitmapper* map){
46
46
  }
47
47
  }
48
48
  if(map->bkts != NULL) free(map->bkts);
49
- if(map != NULL) free(map);
49
+
50
50
  }
51
51
 
52
52
  /*
@@ -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;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitmapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: