Kaydet (Commit) 22e9d19d authored tarafından Caolán McNamara's avatar Caolán McNamara

fix old big fat leak in macro and organizer dialogs

Change-Id: Ie8a6c2a8850ad3dd6cd2be878aedfbf81d2473f7
üst 918d1541
...@@ -1232,7 +1232,10 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq ) ...@@ -1232,7 +1232,10 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
short nDialogResult = pDlg->Execute(); short nDialogResult = pDlg->Execute();
if ( !nDialogResult ) if ( !nDialogResult )
{
delete pDlg;
break; break;
}
Sequence< Any > args; Sequence< Any > args;
Sequence< sal_Int16 > outIndex; Sequence< sal_Int16 > outIndex;
...@@ -1250,6 +1253,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq ) ...@@ -1250,6 +1253,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
xScriptContext = xController; xScriptContext = xController;
SfxObjectShell::CallXScript( xScriptContext, pDlg->GetScriptURL(), args, ret, outIndex, outArgs ); SfxObjectShell::CallXScript( xScriptContext, pDlg->GetScriptURL(), args, ret, outIndex, outArgs );
delete pDlg;
} }
while ( false ); while ( false );
rReq.Done(); rReq.Done();
...@@ -1275,6 +1279,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq ) ...@@ -1275,6 +1279,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
if( pDlg ) if( pDlg )
{ {
pDlg->Execute(); pDlg->Execute();
delete pDlg;
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment