summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorbuliabyak <>2013-09-29 02:09:39 +0000
committerbuliabyak <>2013-09-29 02:09:39 +0000
commitee8f0667f84689466f68eecfb9498e7b092e168b (patch)
tree5a9e828c8b9d6885a5a2ea80453909e8f25bd811 /src/document.cpp
parentfix leaking of transforms (diff)
downloadinkscape-ee8f0667f84689466f68eecfb9498e7b092e168b.tar.gz
inkscape-ee8f0667f84689466f68eecfb9498e7b092e168b.zip
collectOrphans moved to the end of destructor to prevent leaking of uncollected stuff
(bzr r12625)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/document.cpp b/src/document.cpp
index dda072283..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;
@@ -224,6 +222,9 @@ SPDocument::~SPDocument() {
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;
}