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

Unified Diff: xfa/src/fxfa/src/app/xfa_fffield.cpp

Issue 1509203002: FWL refcounts never incremented (part 1) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: protected Created 5 years 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 | « xfa/src/fwl/src/lightwidget/widget.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/src/fxfa/src/app/xfa_fffield.cpp
diff --git a/xfa/src/fxfa/src/app/xfa_fffield.cpp b/xfa/src/fxfa/src/app/xfa_fffield.cpp
index 9b70f65eae76aed388c5b2e318da52de156643c8..22d1bf1791ca7d066ff1e1e8b06ff5ca24b6478c 100644
--- a/xfa/src/fxfa/src/app/xfa_fffield.cpp
+++ b/xfa/src/fxfa/src/app/xfa_fffield.cpp
@@ -127,10 +127,8 @@ FX_BOOL CXFA_FFField::LoadWidget() {
return TRUE;
}
void CXFA_FFField::UnloadWidget() {
- if (m_pNormalWidget) {
- m_pNormalWidget->Release();
- m_pNormalWidget = NULL;
- }
+ delete m_pNormalWidget;
+ m_pNormalWidget = nullptr;
}
void CXFA_FFField::SetEditScrollOffset() {
XFA_ELEMENT eType = m_pDataAcc->GetUIType();
« no previous file with comments | « xfa/src/fwl/src/lightwidget/widget.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698