diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-09-21 18:37:10 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-09-21 18:37:10 +0000 |
| commit | e88b4570489016be591c38808dd9e604f223accd (patch) | |
| tree | edd208908f5077b70d4a2c5da7de4e1dccc6a730 /src/document-subset.cpp | |
| parent | Fix for GIMP palette export: check that the node has a hasAttributes() method... (diff) | |
| download | inkscape-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.cpp | 6 |
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(); + } } } |
