From: buliabyak Date: Sun, 21 Sep 2008 18:37:10 +0000 (+0000) Subject: fix crash: connections were not disconnected on destruction X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3f4648e535d6fb8388685ff9dd7e1ab111977607;p=inkscape.git fix crash: connections were not disconnected on destruction --- 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, 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(); + } } }