Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1537)

Unified Diff: fpdfsdk/src/formfiller/FFL_TextField.cpp

Issue 1564773003: Invalidate IPWL_FocusHandler and IPWL_Provider on destruction. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..12157bfabaf6f172f64ad37aa90e43e71e63e18c 100644
--- a/fpdfsdk/src/formfiller/FFL_TextField.cpp
+++ b/fpdfsdk/src/formfiller/FFL_TextField.cpp
@@ -16,6 +16,10 @@ CFFL_TextField::CFFL_TextField(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnnot)
}
CFFL_TextField::~CFFL_TextField() {
+ for (auto& it : m_Maps) {
+ CPWL_Wnd* pWnd = it.second;
Tom Sepez 2016/01/06 19:58:26 nitto
Lei Zhang 2016/01/06 22:08:38 Done.
+ pWnd->InvalidateFocusHandler(this);
+ }
delete m_pFontMap;
}

Powered by Google App Engine
This is Rietveld 408576698