From 77221d4b4288ada80e34464ef4a402ea232b402b Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 8 Dec 2015 11:20:08 -0800 Subject: FWL refcounts never incremented (part 1) BUG=pdfium:282 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1509203002 . --- xfa/src/fxfa/src/app/xfa_fffield.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xfa/src/fxfa') diff --git a/xfa/src/fxfa/src/app/xfa_fffield.cpp b/xfa/src/fxfa/src/app/xfa_fffield.cpp index 9b70f65eae..22d1bf1791 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(); -- cgit v1.2.3