diff options
Diffstat (limited to 'uui/source/masterpassworddlg.cxx')
-rw-r--r-- | uui/source/masterpassworddlg.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/uui/source/masterpassworddlg.cxx b/uui/source/masterpassworddlg.cxx index 3b6a071968a3..924112b088c7 100644 --- a/uui/source/masterpassworddlg.cxx +++ b/uui/source/masterpassworddlg.cxx @@ -49,11 +49,23 @@ 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(); + ScopedVclPtrInstance< MessageDialog > aErrorBox(pParent, aErrorMsg); + aErrorBox->Execute(); } m_pOKBtn->SetClickHdl( LINK( this, MasterPasswordDialog, OKHdl_Impl ) ); }; +MasterPasswordDialog::~MasterPasswordDialog() +{ + disposeOnce(); +} + +void MasterPasswordDialog::dispose() +{ + m_pEDMasterPassword.clear(); + m_pOKBtn.clear(); + ModalDialog::dispose(); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |