Avoid possible memory leaks in case of exceptions
Change-Id: Ib4a87cab2729e18b2c830cbd7e7a34d62b5f0f45
This commit is contained in:
@@ -273,14 +273,11 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification(
|
||||
|
||||
if ( pFact != NULL )
|
||||
{
|
||||
VclAbstractDialog* pDlg =
|
||||
pFact->CreateScriptErrorDialog( NULL, aException );
|
||||
boost::scoped_ptr<VclAbstractDialog> pDlg(
|
||||
pFact->CreateScriptErrorDialog( NULL, aException ));
|
||||
|
||||
if ( pDlg != NULL )
|
||||
{
|
||||
if ( pDlg )
|
||||
pDlg->Execute();
|
||||
delete pDlg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user