Index: xfa/fxfa/app/xfa_ffpushbutton.cpp |
diff --git a/xfa/fxfa/app/xfa_ffpushbutton.cpp b/xfa/fxfa/app/xfa_ffpushbutton.cpp |
index cd395b4703a9dc78f6ad1c93033832b6160723b6..77341cd53e8ed4f37b7ce953bc484d4012ac79fe 100644 |
--- a/xfa/fxfa/app/xfa_ffpushbutton.cpp |
+++ b/xfa/fxfa/app/xfa_ffpushbutton.cpp |
@@ -52,10 +52,9 @@ void CXFA_FFPushButton::RenderWidget(CFX_Graphics* pGS, |
} |
FX_BOOL CXFA_FFPushButton::LoadWidget() { |
ASSERT(!m_pNormalWidget); |
- CFWL_PushButton* pPushButton = CFWL_PushButton::Create(); |
- if (pPushButton) { |
- pPushButton->Initialize(); |
- } |
+ CFWL_PushButton* pPushButton = new CFWL_PushButton; |
+ pPushButton->Initialize(); |
+ |
m_pOldDelegate = pPushButton->SetDelegate(this); |
m_pNormalWidget = pPushButton; |
m_pNormalWidget->SetLayoutItem(this); |