summaryrefslogtreecommitdiff
path: root/sc/source/ui/namedlg/namepast.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/namedlg/namepast.cxx')
-rw-r--r--sc/source/ui/namedlg/namepast.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/namedlg/namepast.cxx b/sc/source/ui/namedlg/namepast.cxx
index f508d32eebda..daf2b8e1d60e 100644
--- a/sc/source/ui/namedlg/namepast.cxx
+++ b/sc/source/ui/namedlg/namepast.cxx
@@ -70,7 +70,10 @@ ScNamePasteDlg::~ScNamePasteDlg()
void ScNamePasteDlg::dispose()
{
- delete mpTable;
+ m_pBtnPasteAll.clear();
+ m_pBtnPaste.clear();
+ m_pBtnClose.clear();
+ mpTable.clear();
ModalDialog::dispose();
}