Permalink
Browse files

call mrb_gc_free_gc from mrb_close

  • Loading branch information...
1 parent 0b14f95 commit a37c1daf33fda9749c56447ec3cead46252e65bd @matz matz committed Aug 11, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/state.c
View
@@ -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++) {

0 comments on commit a37c1da

Please sign in to comment.