Index: fpdfsdk/src/jsapi/fxjs_v8.cpp |
diff --git a/fpdfsdk/src/jsapi/fxjs_v8.cpp b/fpdfsdk/src/jsapi/fxjs_v8.cpp |
index 80def30f96a2f95373b540895d3452e6a5ae9158..f400efbcd5ae42fa0d0e758a20c798b654dd7930 100644 |
--- a/fpdfsdk/src/jsapi/fxjs_v8.cpp |
+++ b/fpdfsdk/src/jsapi/fxjs_v8.cpp |
@@ -137,6 +137,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; |