Fix NULL pointer dereference mrb->c by mark_context()

This commit is contained in:
dearblue
2019-01-19 10:11:37 +09:00
parent d9c7b6be6e
commit a3cfe755ab
+1
View File
@@ -1277,6 +1277,7 @@ mrb_full_gc(mrb_state *mrb)
{
mrb_gc *gc = &mrb->gc;
if (!mrb->c) return;
if (gc->disabled || gc->iterating) return;
GC_INVOKE_TIME_REPORT("mrb_full_gc()");