summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 5e968b08b..bef4ad8cd 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -1698,6 +1698,9 @@ static void
_reconstruction_start (SPDesktop * desktop)
{
// printf("Desktop, starting reconstruction\n");
+ if (desktop->_reconstruction_old_layer_id){
+ g_free(desktop->_reconstruction_old_layer_id);
+ }
desktop->_reconstruction_old_layer_id = g_strdup(desktop->currentLayer()->getId());
desktop->_layer_hierarchy->setBottom(desktop->currentRoot());