From a767b323d0447407045ed6ca309f373b1c3eab52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Krzysztof=20Kosi=C5=84ski?= Date: Thu, 4 Feb 2010 03:39:19 +0100 Subject: [PATCH] Fix access to removed elements of a map in document-subset.cpp --- src/document-subset.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/document-subset.cpp b/src/document-subset.cpp index aa4046d86..eb7265b2d 100644 --- a/src/document-subset.cpp +++ b/src/document-subset.cpp @@ -184,9 +184,6 @@ private: void _doRemove(SPObject *obj) { Record &record=records[obj]; - record.release_connection.disconnect(); - record.position_changed_connection.disconnect(); - records.erase(obj); if ( record.parent == NULL ) { Record &root = records[NULL]; @@ -198,6 +195,9 @@ private: } } + record.release_connection.disconnect(); + record.position_changed_connection.disconnect(); + records.erase(obj); removed_signal.emit(obj); sp_object_unref(obj); } -- 2.30.2