Index: fpdfsdk/jsapi/fxjs_v8.cpp |
diff --git a/fpdfsdk/jsapi/fxjs_v8.cpp b/fpdfsdk/jsapi/fxjs_v8.cpp |
index 473b54631842a3533ce0fa6d5bea4e29ba016c8a..034f2c6642356a3b1f7c658992d7ed752440728c 100644 |
--- a/fpdfsdk/jsapi/fxjs_v8.cpp |
+++ b/fpdfsdk/jsapi/fxjs_v8.cpp |
@@ -374,7 +374,6 @@ void FXJS_ReleaseRuntime(v8::Isolate* pIsolate, |
FXJS_PerIsolateData* pData = FXJS_PerIsolateData::Get(pIsolate); |
if (!pData) |
return; |
- pData->ReleaseDynamicObjsMap(); |
int maxID = CFXJS_ObjDefinition::MaxID(pIsolate); |
for (int i = 0; i < maxID; ++i) { |
@@ -399,6 +398,7 @@ void FXJS_ReleaseRuntime(v8::Isolate* pIsolate, |
if (pIsolate == g_isolate && --g_isolate_ref_count > 0) |
return; |
+ pData->ReleaseDynamicObjsMap(); |
for (int i = 0; i < maxID; ++i) |
delete CFXJS_ObjDefinition::ForID(pIsolate, i); |