ext/fiddle/handle.c in fiddle-1.1.2 vs ext/fiddle/handle.c in fiddle-1.1.3
- old
+ new
@@ -54,11 +54,12 @@
.function = {
.dmark = 0,
.dfree = fiddle_handle_free,
.dsize = fiddle_handle_memsize
},
- .flags = RUBY_TYPED_WB_PROTECTED,
+ .flags = FIDDLE_DEFAULT_TYPED_DATA_FLAGS & ~RUBY_TYPED_FREE_IMMEDIATELY,
+ /* keeping while its symbols are referred. */
};
/*
* call-seq: close
*
@@ -585,7 +586,5 @@
rb_define_method(rb_cHandle, "file_name", rb_fiddle_handle_file_name, 0);
rb_define_method(rb_cHandle, "disable_close", rb_fiddle_handle_disable_close, 0);
rb_define_method(rb_cHandle, "enable_close", rb_fiddle_handle_enable_close, 0);
rb_define_method(rb_cHandle, "close_enabled?", rb_fiddle_handle_close_enabled_p, 0);
}
-
-/* vim: set noet sws=4 sw=4: */