diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-08-12 00:05:10 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-08-12 00:05:10 +0900 |
| commit | a37c1daf33fda9749c56447ec3cead46252e65bd (patch) | |
| tree | cc6ae3d0c1bdcd5e390a00ef03919c6bb1e190da /src | |
| parent | 0b14f950a76d36647704d2e9100d27024e739423 (diff) | |
| download | mruby-a37c1daf33fda9749c56447ec3cead46252e65bd.tar.gz mruby-a37c1daf33fda9749c56447ec3cead46252e65bd.zip | |
call mrb_gc_free_gc from mrb_close
Diffstat (limited to 'src')
| -rw-r--r-- | src/state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index 26e7dff4a..181cd00e0 100644 --- a/src/state.c +++ b/src/state.c @@ -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++) { |
