diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-27 17:29:28 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-27 17:29:28 +0900 |
| commit | 9ac386923d6a2dc62b5ec61fa8bcbc2f1f551be9 (patch) | |
| tree | 391196c4f63325b549a42529421e222a78d02f41 /src/state.c | |
| parent | e9e1259b61ec869eb64f0c872508957eb7a9d2b8 (diff) | |
| download | mruby-9ac386923d6a2dc62b5ec61fa8bcbc2f1f551be9.tar.gz mruby-9ac386923d6a2dc62b5ec61fa8bcbc2f1f551be9.zip | |
float objects in pool are objects when MRB_WORD_BOXING is set
Diffstat (limited to 'src/state.c')
| -rw-r--r-- | src/state.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index 00e113998..a8158ab29 100644 --- a/src/state.c +++ b/src/state.c @@ -139,6 +139,11 @@ mrb_irep_free(mrb_state *mrb, mrb_irep *irep) mrb_free(mrb, mrb_str_ptr(irep->pool[i])->ptr); mrb_free(mrb, mrb_obj_ptr(irep->pool[i])); } +#ifdef MRB_WORD_BOXING + else if (mrb_type(irep->pool[i]) == MRB_TT_FLOAT) { + mrb_free(mrb, mrb_obj_ptr(irep->pool[i])); + } +#endif } mrb_free(mrb, irep->pool); mrb_free(mrb, irep->syms); |
