mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
fix GC safety bug in makeNewGeneral
This commit is contained in:
parent
001000364d
commit
28b5c46a0b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user