summaryrefslogtreecommitdiff
path: root/xfa/src/fxfa
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/src/fxfa')
-rw-r--r--xfa/src/fxfa/src/app/xfa_fffield.cpp6
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();