Commit 147aa040 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

mrb_open_allocf() should keep ud in mrb_state

parent e27cc402
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment