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.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/namedlg/namepast.cxx b/sc/source/ui/namedlg/namepast.cxx
index 841781575ed4..f508d32eebda 100644
--- a/sc/source/ui/namedlg/namepast.cxx
+++ b/sc/source/ui/namedlg/namepast.cxx
@@ -65,7 +65,13 @@ ScNamePasteDlg::ScNamePasteDlg( vcl::Window * pParent, ScDocShell* pShell, bool
ScNamePasteDlg::~ScNamePasteDlg()
{
+ dispose();
+}
+
+void ScNamePasteDlg::dispose()
+{
delete mpTable;
+ ModalDialog::dispose();
}
IMPL_LINK( ScNamePasteDlg, ButtonHdl, Button *, pButton )