Index: fpdfsdk/src/formfiller/FFL_TextField.cpp |
diff --git a/fpdfsdk/src/formfiller/FFL_TextField.cpp b/fpdfsdk/src/formfiller/FFL_TextField.cpp |
index 8d39b82dd5c3345839f32b1d40bf57bfc47594f7..ca4e07be4db2ad9018a7a0d4be96efe2cea239d7 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; |
} |