ext/oj/mimic_json.c in oj-3.11.0 vs ext/oj/mimic_json.c in oj-3.11.1

- old
+ new

@@ -839,9 +839,10 @@ if (!rb_const_defined_at(generator, rb_intern("State"))) { rb_require("oj/state"); } // Pull in the JSON::State mimic file. state_class = rb_const_get_at(generator, rb_intern("State")); + rb_gc_register_mark_object(state_class); symbolize_names_sym = ID2SYM(rb_intern("symbolize_names")); rb_gc_register_address(&symbolize_names_sym); } /* Document-module: JSON