diff options
author | tsepez <tsepez@chromium.org> | 2016-05-18 13:22:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-18 13:22:58 -0700 |
commit | f1a52caa6756049922a16203c9a0faee92cc07c3 (patch) | |
tree | 566c86df50374092435efaed4fe9c1cd39f26676 /xfa/fxfa/parser/xfa_document_imp.cpp | |
parent | cbfef5772c52fbd3378905a61fc9432da1515433 (diff) | |
download | pdfium-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.cpp | 7 |
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; |