From: buliabyak Date: Sun, 21 Sep 2008 22:16:54 +0000 (+0000) Subject: fix crash: desktop->selection was not deleted when desktop is destroyed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cfdcf4686c4858ab2e5d3d881de7158f3e6003d7;p=inkscape.git fix crash: desktop->selection was not deleted when desktop is destroyed --- 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();