summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8df8c8f)
raw | patch | inline | side by side (parent: 8df8c8f)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 20 Sep 2008 23:58:20 +0000 (23:58 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 20 Sep 2008 23:58:20 +0000 (23:58 +0000) |
src/sp-use.cpp | patch | blob | history |
diff --git a/src/sp-use.cpp b/src/sp-use.cpp
index 213f827ef2dfa12b9bdcd32133b7ae697ab50c2c..8b63217455f280c7f4d4452967cdc8302126d689 100644 (file)
--- a/src/sp-use.cpp
+++ b/src/sp-use.cpp
{
SPUse *use = (SPUse *) obj;
+ if (use->child) {
+ sp_object_detach(SP_OBJECT(obj), use->child);
+ use->child = NULL;
+ }
+
+ use->ref->detach();
delete use->ref;
use->_delete_connection.~connection();
{
SPUse *use = SP_USE(object);
- use->child = NULL;
+ if (use->child) {
+ sp_object_detach(object, use->child);
+ use->child = NULL;
+ }
use->_delete_connection.disconnect();
use->_changed_connection.disconnect();