summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/xfa_document_imp.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-18 13:22:57 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-18 13:22:58 -0700
commitf1a52caa6756049922a16203c9a0faee92cc07c3 (patch)
tree566c86df50374092435efaed4fe9c1cd39f26676 /xfa/fxfa/parser/xfa_document_imp.cpp
parentcbfef5772c52fbd3378905a61fc9432da1515433 (diff)
downloadpdfium-f1a52caa6756049922a16203c9a0faee92cc07c3.tar.xz
Remove Release() from CXFA_ScriptContext
Review-Url: https://codereview.chromium.org/1988263002
Diffstat (limited to 'xfa/fxfa/parser/xfa_document_imp.cpp')
-rw-r--r--xfa/fxfa/parser/xfa_document_imp.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/xfa/fxfa/parser/xfa_document_imp.cpp b/xfa/fxfa/parser/xfa_document_imp.cpp
index c6f9295dcc..4d13f16f0e 100644
--- a/xfa/fxfa/parser/xfa_document_imp.cpp
+++ b/xfa/fxfa/parser/xfa_document_imp.cpp
@@ -49,11 +49,8 @@ CXFA_Document::~CXFA_Document() {
void CXFA_Document::ClearLayoutData() {
delete m_pLayoutProcessor;
m_pLayoutProcessor = nullptr;
-
- if (m_pScriptContext) {
- m_pScriptContext->Release();
- m_pScriptContext = nullptr;
- }
+ delete m_pScriptContext;
+ m_pScriptContext = nullptr;
delete m_pLocalMgr;
m_pLocalMgr = nullptr;
delete m_pScriptDataWindow;