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(); |