summaryrefslogtreecommitdiffstats
path: root/src/document-subset.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-09-21 18:37:10 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-09-21 18:37:10 +0000
commite88b4570489016be591c38808dd9e604f223accd (patch)
treeedd208908f5077b70d4a2c5da7de4e1dccc6a730 /src/document-subset.cpp
parentFix for GIMP palette export: check that the node has a hasAttributes() method... (diff)
downloadinkscape-e88b4570489016be591c38808dd9e604f223accd.tar.gz
inkscape-e88b4570489016be591c38808dd9e604f223accd.zip
fix crash: connections were not disconnected on destruction
(bzr r6862)
Diffstat (limited to 'src/document-subset.cpp')
-rw-r--r--src/document-subset.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/document-subset.cpp b/src/document-subset.cpp
index 04b3d9b06..aa4046d86 100644
--- a/src/document-subset.cpp
+++ b/src/document-subset.cpp
@@ -140,8 +140,12 @@ struct DocumentSubset::Relations : public GC::Managed<GC::ATOMIC>,
for ( Map::iterator iter=records.begin()
; iter != records.end() ; ++iter )
{
- if ((*iter).first)
+ if ((*iter).first) {
sp_object_unref((*iter).first);
+ Record &record=(*iter).second;
+ record.release_connection.disconnect();
+ record.position_changed_connection.disconnect();
+ }
}
}