summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfxfa
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fpdfxfa')
-rw-r--r--fpdfsdk/fpdfxfa/cpdfxfa_context.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp
index 1b69ff45b9..1345bc8a08 100644
--- a/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp
+++ b/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp
@@ -67,9 +67,10 @@ CPDFXFA_Context::~CPDFXFA_Context() {
void CPDFXFA_Context::CloseXFADoc() {
if (!m_pXFADoc)
return;
+
+ m_pXFADocView = nullptr;
m_pXFADoc->CloseDoc();
m_pXFADoc.reset();
- m_pXFADocView = nullptr;
}
void CPDFXFA_Context::SetFormFillEnv(