summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-09 17:47:19 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-09 17:51:41 +0200
commitb818619266e794ad5eadb7f859c3016b377f5bd3 (patch)
tree941817a28a61e30b5e96c0961db1381109ee4db9 /sfx2
parent55df573e236173fb6c6f0af0a1f99ef4cb7d68d1 (diff)
Do not leak SfxDialogExecutor_Impl
Change-Id: Ife3e8e4b339b3e2cba3bc81e14f616d75c4f5ed0
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewprn.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx
index d5c846e7f9b6..72555b12f066 100644
--- a/sfx2/source/view/viewprn.cxx
+++ b/sfx2/source/view/viewprn.cxx
@@ -631,7 +631,6 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq )
{
sal_uInt16 nDialogRet = RET_CANCEL;
SfxPrinter* pPrinter = 0;
- SfxDialogExecutor_Impl* pExecutor = 0;
bool bSilent = false;
// does the function have been called by the user interface or by an API call
@@ -815,6 +814,7 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq )
// execute PrinterSetupDialog
PrinterSetupDialog* pPrintSetupDlg = new PrinterSetupDialog( GetWindow() );
+ SfxDialogExecutor_Impl* pExecutor = 0;
if (pImp->m_bHasPrintOptions && HasPrintOptionsPage())
{
@@ -841,6 +841,7 @@ void SfxViewShell::ExecPrint_Impl( SfxRequest &rReq )
}
DELETEZ( pPrintSetupDlg );
+ delete pExecutor;
// no recording of PrinterSetup except printer name (is printer dependent)
rReq.Ignore();