From: buliabyak Date: Tue, 12 Sep 2006 18:06:49 +0000 (+0000) Subject: fix crash 1544495 when closing a document with mask/clippath: it makes no sense to... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ac9a3068d3edbc8c62348a01a65945fa7144794a;p=inkscape.git 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 --- 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);