mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
irep->pool struct pool -> mrb_value
This commit is contained in:
+3
-2
@@ -11,6 +11,7 @@
|
||||
#include "mruby/irep.h"
|
||||
#include "mruby/variable.h"
|
||||
#include "mruby/debug.h"
|
||||
#include "mruby/string.h"
|
||||
|
||||
void mrb_init_heap(mrb_state*);
|
||||
void mrb_init_core(mrb_state*);
|
||||
@@ -129,8 +130,8 @@ mrb_irep_free(mrb_state *mrb, mrb_irep *irep)
|
||||
if (!(irep->flags & MRB_ISEQ_NO_FREE))
|
||||
mrb_free(mrb, irep->iseq);
|
||||
for (i=0; i<irep->plen; i++) {
|
||||
if (irep->pool[i].type == IREP_TT_STRING)
|
||||
mrb_free(mrb, irep->pool[i].value.s);
|
||||
if (mrb_type(irep->pool[i]) == MRB_TT_STRING)
|
||||
mrb_free(mrb, mrb_obj_ptr(irep->pool[i]));
|
||||
}
|
||||
mrb_free(mrb, irep->pool);
|
||||
mrb_free(mrb, irep->syms);
|
||||
|
||||
Reference in New Issue
Block a user