summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-09-30 09:38:37 +0000
committerJabiertxof <jtx@jtx.marker.es>2013-09-30 09:38:37 +0000
commitacf5c7612afc02aee6ddf079d2ea77e13bb82e1b (patch)
tree8af7a0de9007c10f5e3a8d00676b162e35a74929 /src/document.cpp
parentupdate to trunk (diff)
parentReduce tools-switcher code, add description for node and select toos. (diff)
downloadinkscape-acf5c7612afc02aee6ddf079d2ea77e13bb82e1b.tar.gz
inkscape-acf5c7612afc02aee6ddf079d2ea77e13bb82e1b.zip
Update to trunk
(bzr r11950.1.156)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 800f2f33d..b94b72bda 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -139,8 +139,6 @@ SPDocument::SPDocument() :
}
SPDocument::~SPDocument() {
- collectOrphans();
-
// kill/unhook this first
if ( profileManager ) {
delete profileManager;
@@ -219,6 +217,14 @@ SPDocument::~SPDocument() {
inkscape_unref();
keepalive = FALSE;
}
+
+ if (this->current_persp3d_impl)
+ delete this->current_persp3d_impl;
+ this->current_persp3d_impl = NULL;
+
+ // This is at the end of the destructor, because preceding code adds new orphans to the queue
+ collectOrphans();
+
//delete this->_whiteboard_session_manager;
}