Index: fpdfsdk/src/jsapi/fxjs_v8.cpp |
diff --git a/fpdfsdk/src/jsapi/fxjs_v8.cpp b/fpdfsdk/src/jsapi/fxjs_v8.cpp |
index bea9f4c4d88a2ce15fabbb1f6d2917eeeac43745..b7951c4f3f68dad09f2e37a1eb47388e968998eb 100644 |
--- a/fpdfsdk/src/jsapi/fxjs_v8.cpp |
+++ b/fpdfsdk/src/jsapi/fxjs_v8.cpp |
@@ -145,6 +145,7 @@ void FXJS_Initialize(unsigned int embedderDataSlot, v8::Isolate* pIsolate) { |
void FXJS_Release() { |
ASSERT(!g_isolate || g_isolate_ref_count == 0); |
+ delete g_DefaultGlobalObjectTemplate; |
g_DefaultGlobalObjectTemplate = nullptr; |
g_isolate = nullptr; |