Commit bee96654 authored by dearblue's avatar dearblue

Assign after `mrb_irep_incref()` in `mrb_proc_new()`

ref. 28ccc664
parent 28ccc664
......@@ -67,10 +67,10 @@ mrb_proc_new(mrb_state *mrb, const mrb_irep *irep)
p->upper = ci->proc;
p->e.target_class = tc;
}
p->body.irep = irep;
if (irep) {
mrb_irep_incref(mrb, (mrb_irep*)irep);
}
p->body.irep = irep;
return p;
}
......
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