diff options
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/protocolhandler/scripthandler.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx index b5760b613bc9..e959d3fe6ef6 100644 --- a/scripting/source/protocolhandler/scripthandler.cxx +++ b/scripting/source/protocolhandler/scripthandler.cxx @@ -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; - } } } |