diff options
Diffstat (limited to 'dbaccess/source/ui/dlg/TablesSingleDlg.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/TablesSingleDlg.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dbaccess/source/ui/dlg/TablesSingleDlg.cxx b/dbaccess/source/ui/dlg/TablesSingleDlg.cxx index a4a51e3d2623..8a29c4873208 100644 --- a/dbaccess/source/ui/dlg/TablesSingleDlg.cxx +++ b/dbaccess/source/ui/dlg/TablesSingleDlg.cxx @@ -54,14 +54,20 @@ OTableSubscriptionDialog::OTableSubscriptionDialog(vcl::Window* pParent m_pImpl->translateProperties(xDatasource, *m_pOutSet); SetInputSet(m_pOutSet); - OTableSubscriptionPage* pTabPage = new OTableSubscriptionPage(get_content_area(), *m_pOutSet, this); + VclPtrInstance<OTableSubscriptionPage> pTabPage(get_content_area(), *m_pOutSet, this); pTabPage->SetServiceFactory(_rxORB); SetTabPage(pTabPage); } OTableSubscriptionDialog::~OTableSubscriptionDialog() { + disposeOnce(); +} + +void OTableSubscriptionDialog::dispose() +{ delete m_pOutSet; + SfxSingleTabDialog::dispose(); } short OTableSubscriptionDialog::Execute() |