mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mrb_open_allocf() should keep ud in mrb_state
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user