Kouhei Sutou
null+****@clear*****
Sat Aug 16 13:43:53 JST 2014
Kouhei Sutou 2014-08-16 13:43:53 +0900 (Sat, 16 Aug 2014) New Revision: 5976731352ed992ed3b6c4c0434e9ffccc03477c https://github.com/ranguba/rroonga/commit/5976731352ed992ed3b6c4c0434e9ffccc03477c Message: Support closing accessor by GC Modified files: ext/groonga/rb-grn-object.c Modified: ext/groonga/rb-grn-object.c (+1 -3) =================================================================== --- ext/groonga/rb-grn-object.c 2014-08-16 13:43:08 +0900 (8ec884c) +++ ext/groonga/rb-grn-object.c 2014-08-16 13:43:53 +0900 (f7cb5a8) @@ -382,14 +382,12 @@ rb_grn_object_bind_common (VALUE klass, VALUE self, VALUE rb_context, context, object, rb_grn_object, rb_grn_inspect_type(object->header.type), object->header.type); - /* TODO: We want to call finalizer for GRN_ACCESSOR. */ - rb_grn_object->have_finalizer = GRN_FALSE; + rb_grn_object->have_finalizer = GRN_TRUE; } switch (object->header.type) { case GRN_PROC: case GRN_TYPE: - case GRN_ACCESSOR: /* TODO: We want to close GRN_ACCESSOR. */ rb_grn_object->need_close = GRN_FALSE; break; default: -------------- next part -------------- HTML����������������������������...Download