summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/childwin.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx
index ab61c0f88872..a69800230211 100644
--- a/sfx2/source/appl/childwin.cxx
+++ b/sfx2/source/appl/childwin.cxx
@@ -197,10 +197,8 @@ void SfxChildWindow::Destroy()
SfxChildWindow::~SfxChildWindow()
{
DBG_DTOR(SfxChildWindow,0);
- if ( pContext )
- delete pContext;
- if ( pWindow )
- delete pWindow;
+ delete pContext;
+ delete pWindow;
delete pImp;
}