diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-09-21 22:16:54 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-09-21 22:16:54 +0000 |
| commit | dfbe230970d62ad629444084affd8e16e49141d7 (patch) | |
| tree | 731964a2e0b1973e879ad918f25ee338155b64df /src/desktop.cpp | |
| parent | - refactor snapping code, removing code duplication (diff) | |
| download | inkscape-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.cpp | 5 |
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(); |
