mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
proc->body.irep may be NULL; fix #3761
This commit is contained in:
@@ -647,7 +647,7 @@ gc_mark_children(mrb_state *mrb, mrb_gc *gc, struct RBasic *obj)
|
||||
|
||||
mrb_gc_mark(mrb, (struct RBasic*)p->env);
|
||||
mrb_gc_mark(mrb, (struct RBasic*)p->target_class);
|
||||
if (!MRB_PROC_CFUNC_P(p)) {
|
||||
if (!MRB_PROC_CFUNC_P(p) && p->body.irep) {
|
||||
mrb_gc_mark(mrb, (struct RBasic*)p->body.irep->outer);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user