fix GC safety bug in makeNewGeneral

This commit is contained in:
Joel Dice 2009-08-10 17:35:44 -06:00
parent 001000364d
commit 28b5c46a0b

View File

@ -2386,6 +2386,8 @@ makeNewGeneral(Thread* t, object class_)
{
assert(t, t->state == Thread::ActiveState);
PROTECT(t, class_);
object instance = makeNew(t, class_);
PROTECT(t, instance);