diff options
author | Lei Zhang <thestig@chromium.org> | 2015-10-04 20:42:33 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-10-04 20:42:33 -0700 |
commit | eda27bd13270f5324ce3caa34a09a40cffc4026f (patch) | |
tree | a3cefbd49ae901d2acc6529794fe633c660dfda6 | |
parent | 4942ed7a79188bd832c2a599e7dd94ea59b674ae (diff) | |
download | pdfium-chromium/2528.tar.xz |
Fix a leak with g_DefaultGlobalObjectTemplate.chromium/2528
As seen when running FXJSV8Embeddertest.Getters.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1380993003 .
-rw-r--r-- | fpdfsdk/src/jsapi/fxjs_v8.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fpdfsdk/src/jsapi/fxjs_v8.cpp b/fpdfsdk/src/jsapi/fxjs_v8.cpp index 54044e2118..70cdc2dc15 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; |