diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-12-08 11:20:08 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-12-08 11:20:08 -0800 |
commit | 77221d4b4288ada80e34464ef4a402ea232b402b (patch) | |
tree | 41b1d1d1e46fd6afd4607ed0d3fa3e6d0102caa5 /xfa/src/fxfa | |
parent | 4a28a7376367165404eeabdfb4274d30c2d6c040 (diff) | |
download | pdfium-77221d4b4288ada80e34464ef4a402ea232b402b.tar.xz |
FWL refcounts never incremented (part 1)
BUG=pdfium:282
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1509203002 .
Diffstat (limited to 'xfa/src/fxfa')
-rw-r--r-- | xfa/src/fxfa/src/app/xfa_fffield.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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();
|