diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | proc.c | 8 |
2 files changed, 6 insertions, 7 deletions
@@ -1,3 +1,8 @@ +Thu Dec 10 04:49:16 2015 Eric Wong <e@80x24.org> + + * proc.c (bm_free): remove, use default free + (method_data_type): use RUBY_TYPED_DEFAULT_FREE + Thu Dec 10 02:01:41 2015 Koichi Sasada <ko1@atdot.net> * compile.c (iseq_compile_each): do not add debug information @@ -1194,12 +1194,6 @@ bm_mark(void *ptr) rb_gc_mark((VALUE)data->me); } -static void -bm_free(void *ptr) -{ - xfree(ptr); -} - static size_t bm_memsize(const void *ptr) { @@ -1210,7 +1204,7 @@ static const rb_data_type_t method_data_type = { "method", { bm_mark, - bm_free, + RUBY_TYPED_DEFAULT_FREE, bm_memsize, }, 0, 0, RUBY_TYPED_FREE_IMMEDIATELY |