mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
call mrb_gc_free_gc from mrb_close
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
#include "mruby.h"
|
||||
#include "mruby/irep.h"
|
||||
#include "mruby/variable.h"
|
||||
#include <string.h>
|
||||
|
||||
void mrb_init_heap(mrb_state*);
|
||||
@@ -54,6 +55,7 @@ mrb_close(mrb_state *mrb)
|
||||
int i;
|
||||
|
||||
/* free */
|
||||
mrb_gc_free_gv(mrb);
|
||||
mrb_free(mrb, mrb->stbase);
|
||||
mrb_free(mrb, mrb->cibase);
|
||||
for (i=0; i<mrb->irep_len; i++) {
|
||||
|
||||
Reference in New Issue
Block a user