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

Unified Diff: fpdfsdk/cpdfsdk_formfillenvironment.h

Issue 2406893003: Fix member destruction ordering in CPDFSDK_FormFillEnvironment. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
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 e92537eee128cb4ae1bf4a200b701648f0e3f2a6..50ae966571ef3dc525f285414755ed7c44c44574 100644
--- a/fpdfsdk/cpdfsdk_formfillenvironment.h
+++ b/fpdfsdk/cpdfsdk_formfillenvironment.h
@@ -162,13 +162,13 @@ class CPDFSDK_FormFillEnvironment final {
CPDFSDK_ActionHandler* GetActionHander(); // Creates if not present.
private:
+ std::unique_ptr<CFFL_InteractiveFormFiller> m_pFormFiller;
dsinclair 2016/10/11 14:13:26 What does this need to be destroyed after, everyth
Lei Zhang 2016/10/11 19:38:28 I did this quickly last night. I think it needs to
std::unique_ptr<CPDFSDK_AnnotHandlerMgr> m_pAnnotHandlerMgr;
std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler;
std::unique_ptr<IJS_Runtime> m_pJSRuntime;
FPDF_FORMFILLINFO* const m_pInfo;
std::unique_ptr<CPDFSDK_Document> m_pSDKDoc;
UnderlyingDocumentType* const m_pUnderlyingDoc;
- std::unique_ptr<CFFL_InteractiveFormFiller> m_pFormFiller;
std::unique_ptr<CFX_SystemHandler> m_pSysHandler;
Tom Sepez 2016/10/11 16:28:01 Should this be the very last thing to go?
Lei Zhang 2016/10/11 19:38:28 Not sure. I didn't hit any known problems with thi
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698