summaryrefslogtreecommitdiff
path: root/uui/source/masterpassworddlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'uui/source/masterpassworddlg.cxx')
-rw-r--r--uui/source/masterpassworddlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/uui/source/masterpassworddlg.cxx b/uui/source/masterpassworddlg.cxx
index 3b6a071968a3..0b219a62b835 100644
--- a/uui/source/masterpassworddlg.cxx
+++ b/uui/source/masterpassworddlg.cxx
@@ -49,8 +49,8 @@ MasterPasswordDialog::MasterPasswordDialog
if( nDialogMode == ::com::sun::star::task::PasswordRequestMode_PASSWORD_REENTER )
{
OUString aErrorMsg( ResId( STR_ERROR_MASTERPASSWORD_WRONG, *pResourceMgr ));
- MessageDialog aErrorBox(pParent, aErrorMsg);
- aErrorBox.Execute();
+ VclPtr<MessageDialog> aErrorBox(new MessageDialog(pParent, aErrorMsg));
+ aErrorBox->Execute();
}
m_pOKBtn->SetClickHdl( LINK( this, MasterPasswordDialog, OKHdl_Impl ) );