summaryrefslogtreecommitdiff
path: root/chart2/source/controller/dialogs/dlg_DataSource.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/dialogs/dlg_DataSource.cxx')
-rw-r--r--chart2/source/controller/dialogs/dlg_DataSource.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/chart2/source/controller/dialogs/dlg_DataSource.cxx b/chart2/source/controller/dialogs/dlg_DataSource.cxx
index 88c1a41f64fd..09e55375e734 100644
--- a/chart2/source/controller/dialogs/dlg_DataSource.cxx
+++ b/chart2/source/controller/dialogs/dlg_DataSource.cxx
@@ -164,16 +164,14 @@ DataSourceDialog::~DataSourceDialog()
void DataSourceDialog::dispose()
{
- delete m_pRangeChooserTabePage;
- m_pRangeChooserTabePage = NULL;
- delete m_pDataSourceTabPage;
- m_pDataSourceTabPage = NULL;
if (m_pTabControl)
{
m_nLastPageId = m_pTabControl->GetCurPageId();
- delete m_pTabControl;
- m_pTabControl = NULL;
}
+ m_pRangeChooserTabePage.clear();
+ m_pDataSourceTabPage.clear();
+ m_pTabControl.clear();
+ m_pBtnOK.clear();
TabDialog::dispose();
}