Kouhei Sutou
null+****@clear*****
Sat Aug 16 13:34:55 JST 2014
Kouhei Sutou 2014-08-16 13:34:55 +0900 (Sat, 16 Aug 2014) New Revision: 51b70edc2d03458d8c9f91745fbccac28cc98d26 https://github.com/ranguba/rroonga/commit/51b70edc2d03458d8c9f91745fbccac28cc98d26 Message: Add missing have_finalizer check Modified files: ext/groonga/rb-grn-object.c Modified: ext/groonga/rb-grn-object.c (+3 -1) =================================================================== --- ext/groonga/rb-grn-object.c 2014-08-16 13:33:33 +0900 (1d74569) +++ ext/groonga/rb-grn-object.c 2014-08-16 13:34:55 +0900 (f1ff83d) @@ -577,7 +577,9 @@ rb_grn_object_close (VALUE self) rb_grn_object_deconstruct(rb_grn_object, &object, &context, NULL, NULL, NULL, NULL); if (object && context) { - rb_grn_object_run_finalizer(context, object, rb_grn_object); + if (rb_grn_object->have_finalizer) { + rb_grn_object_run_finalizer(context, object, rb_grn_object); + } grn_obj_close(context, object); } -------------- next part -------------- HTML����������������������������... Download