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

Unified Diff: fpdfsdk/cpdfsdk_formfillenvironment.h

Issue 2489653003: Fix abort above FPDFPage_Flatten (Closed)
Patch Set: Fix issue Created 4 years, 1 month 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
« no previous file with comments | « BUILD.gn ('k') | fpdfsdk/fpdf_flatten.cpp » ('j') | fpdfsdk/fpdf_flatten.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/cpdfsdk_formfillenvironment.h
diff --git a/fpdfsdk/cpdfsdk_formfillenvironment.h b/fpdfsdk/cpdfsdk_formfillenvironment.h
index 24380197072c30a75ce9056979bef586fa5bc864..e41dec6978c71eccaa0091941b1db34e45271fa4 100644
--- a/fpdfsdk/cpdfsdk_formfillenvironment.h
+++ b/fpdfsdk/cpdfsdk_formfillenvironment.h
@@ -213,7 +213,6 @@ class CPDFSDK_FormFillEnvironment
std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler;
std::unique_ptr<IJS_Runtime> m_pJSRuntime;
FPDF_FORMFILLINFO* const m_pInfo;
- std::map<UnderlyingPageType*, std::unique_ptr<CPDFSDK_PageView>> m_pageMap;
std::unique_ptr<CPDFSDK_InterForm> m_pInterForm;
CPDFSDK_Annot::ObservedPtr m_pFocusAnnot;
UnderlyingDocumentType* m_pUnderlyingDoc;
@@ -221,6 +220,9 @@ class CPDFSDK_FormFillEnvironment
std::unique_ptr<CFX_SystemHandler> m_pSysHandler;
bool m_bChangeMask;
bool m_bBeingDestroyed;
+
+ // Must be destroyed first.
+ std::map<UnderlyingPageType*, std::unique_ptr<CPDFSDK_PageView>> m_pageMap;
};
#endif // FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_
« no previous file with comments | « BUILD.gn ('k') | fpdfsdk/fpdf_flatten.cpp » ('j') | fpdfsdk/fpdf_flatten.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698