Index: fpdfsdk/src/formfiller/FFL_TextField.cpp |
diff --git a/fpdfsdk/src/formfiller/FFL_TextField.cpp b/fpdfsdk/src/formfiller/FFL_TextField.cpp |
index 4d5f72d883b9adf3b8268bd20fe2b1ace407d945..1141b66e9996124f22e2fd5ab30cadd733d17c6a 100644 |
--- a/fpdfsdk/src/formfiller/FFL_TextField.cpp |
+++ b/fpdfsdk/src/formfiller/FFL_TextField.cpp |
@@ -16,6 +16,8 @@ CFFL_TextField::CFFL_TextField(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnnot) |
} |
CFFL_TextField::~CFFL_TextField() { |
+ for (const auto& it : m_Maps) |
+ it.second->InvalidateFocusHandler(this); |
delete m_pFontMap; |
} |