From ac9a3068d3edbc8c62348a01a65945fa7144794a Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 12 Sep 2006 18:06:49 +0000 Subject: [PATCH] fix crash 1544495 when closing a document with mask/clippath: it makes no sense to emit a release signal _after_ the object is already released --- src/sp-object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sp-object.cpp b/src/sp-object.cpp index b16cd9a1a..72a93ec3b 100644 --- a/src/sp-object.cpp +++ b/src/sp-object.cpp @@ -851,11 +851,11 @@ void SPObject::releaseReferences() { sp_repr_remove_listener_by_data(this->repr, this); + this->_release_signal.emit(this); SPObjectClass *klass=(SPObjectClass *)G_OBJECT_GET_CLASS(this); if (klass->release) { klass->release(this); } - this->_release_signal.emit(this); /* all hrefs should be released by the "release" handlers */ g_assert(this->hrefcount == 0); -- 2.30.2