summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/tablespage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/dlg/tablespage.cxx')
-rw-r--r--dbaccess/source/ui/dlg/tablespage.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/dbaccess/source/ui/dlg/tablespage.cxx b/dbaccess/source/ui/dlg/tablespage.cxx
index 59d9af9d75be..54ab0c3cecdf 100644
--- a/dbaccess/source/ui/dlg/tablespage.cxx
+++ b/dbaccess/source/ui/dlg/tablespage.cxx
@@ -99,13 +99,21 @@ namespace dbaui
OTableSubscriptionPage::~OTableSubscriptionPage()
{
+ disposeOnce();
+ }
+
+ void OTableSubscriptionPage::dispose()
+ {
// just to make sure that our connection will be removed
try
{
::comphelper::disposeComponent(m_xCurrentConnection);
}
catch (RuntimeException&) { }
-
+ m_pTables.clear();
+ m_pTablesList.clear();
+ m_pTablesDlg.clear();
+ OGenericAdministrationPage::dispose();
}
void OTableSubscriptionPage::StateChanged( StateChangedType nType )
@@ -319,8 +327,8 @@ namespace dbaui
if (aErrorInfo.isValid())
{
// establishing the connection failed. Show an error window and exit.
- OSQLMessageBox aMessageBox( GetParentDialog(), aErrorInfo );
- aMessageBox.Execute();
+ ScopedVclPtrInstance< OSQLMessageBox > aMessageBox( GetParentDialog(), aErrorInfo );
+ aMessageBox->Execute();
m_pTables->Enable(false);
m_pTablesList->Clear();