diff options
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; |