Index: fpdfsdk/src/jsapi/fxjs_v8.cpp |
diff --git a/fpdfsdk/src/jsapi/fxjs_v8.cpp b/fpdfsdk/src/jsapi/fxjs_v8.cpp |
index 9c2c538aa80d4a9700656020b568cce3653e80c1..9a3a2686522435ab94c5d1500ff39baf26e7e3c4 100644 |
--- a/fpdfsdk/src/jsapi/fxjs_v8.cpp |
+++ b/fpdfsdk/src/jsapi/fxjs_v8.cpp |
@@ -356,12 +356,14 @@ void FXJS_ReleaseRuntime(v8::Isolate* pIsolate, |
pObjDef->m_pDestructor(pObj); |
FXJS_FreePrivate(pObj); |
} |
- delete pObjDef; |
} |
if (pIsolate == g_isolate && --g_isolate_ref_count > 0) |
return; |
+ for (int i = 0; i < maxID; ++i) |
+ delete CFXJS_ObjDefinition::ForID(pIsolate, i); |
+ |
pIsolate->SetData(g_embedderDataSlot, nullptr); |
delete pData; |
} |