Code

fix crash 1544495 when closing a document with mask/clippath: it makes no sense to...
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 12 Sep 2006 18:06:49 +0000 (18:06 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 12 Sep 2006 18:06:49 +0000 (18:06 +0000)
src/sp-object.cpp

index b16cd9a1ab27c3caa191602505d8f9cc507b9d6d..72a93ec3b488db362cdd5630749d1a1d782f56d6 100644 (file)
@@ -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);