summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-09-21 22:16:54 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-09-21 22:16:54 +0000
commitdfbe230970d62ad629444084affd8e16e49141d7 (patch)
tree731964a2e0b1973e879ad918f25ee338155b64df /src/desktop.cpp
parent- refactor snapping code, removing code duplication (diff)
downloadinkscape-dfbe230970d62ad629444084affd8e16e49141d7.tar.gz
inkscape-dfbe230970d62ad629444084affd8e16e49141d7.zip
fix crash: desktop->selection was not deleted when desktop is destroyed
(bzr r6864)
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();