Browse files

mrb_open_allocf() should keep ud in mrb_state

  • Loading branch information...
1 parent e27cc40 commit 147aa040501f84516d50e5665507af6063888ba1 @matz matz committed Aug 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/state.c
View
1 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;

0 comments on commit 147aa04

Please sign in to comment.