Skip to content

Commit ea37f3f

Browse files
delete po and callbackstate in case of jsInstanceInfo == nullptr
1 parent 66572e8 commit ea37f3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test-app/runtime/src/main/cpp/ObjectManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ void ObjectManager::JSObjectFinalizer(Isolate *isolate, ObjectWeakCallbackState
325325

326326
if (jsInstanceInfo == nullptr) {
327327
po->Reset();
328+
delete po;
329+
delete callbackState;
328330
return;
329331
}
330332

0 commit comments

Comments
 (0)