mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Delegate irep string free to mrb_gc_free_str
This commit is contained in:
+1
-3
@@ -134,9 +134,7 @@ mrb_irep_free(mrb_state *mrb, mrb_irep *irep)
|
||||
mrb_free(mrb, irep->iseq);
|
||||
for (i=0; i<irep->plen; i++) {
|
||||
if (mrb_type(irep->pool[i]) == MRB_TT_STRING) {
|
||||
if ((mrb_str_ptr(irep->pool[i])->flags & (MRB_STR_NOFREE|MRB_STR_EMBED)) == 0) {
|
||||
mrb_free(mrb, RSTRING_PTR(irep->pool[i]));
|
||||
}
|
||||
mrb_gc_free_str(mrb, RSTRING(irep->pool[i]));
|
||||
mrb_free(mrb, mrb_obj_ptr(irep->pool[i]));
|
||||
}
|
||||
#ifdef MRB_WORD_BOXING
|
||||
|
||||
Reference in New Issue
Block a user