diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-12 14:28:52 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-12 14:28:52 +0900 |
| commit | 63eddaa696c60f091a24f59ff81c89e1beb545ac (patch) | |
| tree | 01b96f210e8be18571abcb693398048f5b4bedc8 /src/state.c | |
| parent | 18ee842bea517cfc8162d3d6ab46797d26f3b116 (diff) | |
| parent | fcd6e4a7a444de7b6aaf2f0f38f3dbc043e8d495 (diff) | |
| download | mruby-63eddaa696c60f091a24f59ff81c89e1beb545ac.tar.gz mruby-63eddaa696c60f091a24f59ff81c89e1beb545ac.zip | |
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'src/state.c')
| -rw-r--r-- | src/state.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/state.c b/src/state.c index 3dfeed5dc..1e26f49cf 100644 --- a/src/state.c +++ b/src/state.c @@ -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 |
