summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 92946cb7d..4f6ea7a5a 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -339,6 +339,11 @@ void SPDesktop::destroy()
temporary_item_list = NULL;
}
+ if (selection) {
+ delete selection;
+ selection = NULL;
+ }
+
namedview->hide(this);
_activate_connection.disconnect();