From: johanengelen Date: Thu, 1 Nov 2007 23:19:15 +0000 (+0000) Subject: add deletion of layer_manager to SPDesktop::destroy X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5aa46db584631a22421834d5d03ff259cfc348a3;p=inkscape.git add deletion of layer_manager to SPDesktop::destroy --- diff --git a/src/desktop.cpp b/src/desktop.cpp index a97e1f3fc..4fc0e5f60 100644 --- a/src/desktop.cpp +++ b/src/desktop.cpp @@ -336,6 +336,12 @@ void SPDesktop::destroy() if (_layer_hierarchy) { delete _layer_hierarchy; +// _layer_hierarchy = NULL; //this should be here, but commented to find other bug somewhere else. + } + + if (layer_manager) { + delete layer_manager; + layer_manager = NULL; } if (_inkscape) {