diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-31 14:14:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-31 14:16:54 +0000 |
commit | 22e9d19d750420015771b4b92fbbdeb4bc956233 (patch) | |
tree | 81cf66b0e44ddc669364cc7432487eeb7251c8ba /sfx2/source/appl | |
parent | 918d15412980cd8e8c0bc5e2b1413907708aab1f (diff) |
fix old big fat leak in macro and organizer dialogs
Change-Id: Ie8a6c2a8850ad3dd6cd2be878aedfbf81d2473f7
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 1fc527945668..fc109add1382 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -1232,7 +1232,10 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq ) short nDialogResult = pDlg->Execute(); if ( !nDialogResult ) + { + delete pDlg; break; + } Sequence< Any > args; Sequence< sal_Int16 > outIndex; @@ -1250,6 +1253,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq ) xScriptContext = xController; SfxObjectShell::CallXScript( xScriptContext, pDlg->GetScriptURL(), args, ret, outIndex, outArgs ); + delete pDlg; } while ( false ); rReq.Done(); @@ -1275,6 +1279,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq ) if( pDlg ) { pDlg->Execute(); + delete pDlg; } else { |