protect return values from gc at the end of VM

This commit is contained in:
Yuichi Nishiwaki 2013-11-01 18:56:17 +09:00
parent 77b6b94e74
commit 1f0d096ed6
1 changed files with 2 additions and 0 deletions

View File

@ -544,6 +544,8 @@ pic_apply(pic_state *pic, struct pic_proc *proc, pic_value argv)
} }
#endif #endif
pic_gc_protect(pic, val);
return val; return val;
} }
} VM_LOOP_END; } VM_LOOP_END;