Skip to content

Commit

Permalink
thread mrb_state to inherit allocf from its parent
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Oct 7, 2014
1 parent 39104aa commit 73d532d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mrb_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ mrb_thread_init(mrb_state* mrb, mrb_value self) {
int i, l;
mrb_thread_context* context = (mrb_thread_context*) malloc(sizeof(mrb_thread_context));
context->mrb_caller = mrb;
context->mrb = mrb_open();
context->mrb = mrb_open_allocf(mrb->allocf, mrb->allocf_ud);
context->proc = mrb_proc_new(mrb, mrb_proc_ptr(proc)->body.irep);
context->proc->target_class = context->mrb->object_class;
context->argc = argc;
Expand Down

0 comments on commit 73d532d

Please sign in to comment.