mrb_open_allocf() should keep ud in mrb_state

This commit is contained in:
Yukihiro Matsumoto
2012-08-19 21:43:39 +09:00
parent e27cc402da
commit 147aa04050
+1
View File
@@ -20,6 +20,7 @@ mrb_open_allocf(mrb_allocf f, void *ud)
if (mrb == NULL) return NULL;
memset(mrb, 0, sizeof(mrb_state));
mrb->ud = ud;
mrb->allocf = f;
mrb->current_white_part = MRB_GC_WHITE_A;