From 147aa040501f84516d50e5665507af6063888ba1 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Sun, 19 Aug 2012 21:43:39 +0900 Subject: mrb_open_allocf() should keep ud in mrb_state --- src/state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/state.c b/src/state.c index 0a4268ecd..6d34381ba 100644 --- a/src/state.c +++ b/src/state.c @@ -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; -- cgit v1.2.3