summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp6
1 files changed, 6 insertions, 0 deletions
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) {