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

Unified Diff: fpdfsdk/javascript/Field.cpp

Issue 2368403002: Watch destruction of widgets around OnAAction() method (Closed)
Patch Set: blown merge Created 4 years, 3 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 | « fpdfsdk/include/ipdfsdk_annothandler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/javascript/Field.cpp
diff --git a/fpdfsdk/javascript/Field.cpp b/fpdfsdk/javascript/Field.cpp
index 3abf0ecc7e58f6b40bc1f46e966af6c4f82a415e..0534f47749cf0b3b9654bc4ad6314874c03571ef 100644
--- a/fpdfsdk/javascript/Field.cpp
+++ b/fpdfsdk/javascript/Field.cpp
@@ -3222,7 +3222,8 @@ FX_BOOL Field::setFocus(IJS_Context* cc,
}
if (pWidget) {
- m_pDocument->SetFocusAnnot(pWidget);
+ CPDFSDK_Annot::ObservedPtr pObserved(pWidget);
+ m_pDocument->SetFocusAnnot(&pObserved);
}
return TRUE;
« no previous file with comments | « fpdfsdk/include/ipdfsdk_annothandler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698