From 3f4648e535d6fb8388685ff9dd7e1ab111977607 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 21 Sep 2008 18:37:10 +0000 Subject: [PATCH] fix crash: connections were not disconnected on destruction --- src/document-subset.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); + } } } -- 2.30.2