summaryrefslogtreecommitdiffstats
path: root/src/knotholder.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-08 19:01:11 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-08 19:01:11 +0000
commit9fd15efa4ab3302f3f9d7c7473a5377af314021c (patch)
tree61c838bd878be255d82f70d0dc8b2bb8411550b7 /src/knotholder.cpp
parentAdded exception to SPFactory / basic handling to SPObject. (diff)
downloadinkscape-9fd15efa4ab3302f3f9d7c7473a5377af314021c.tar.gz
inkscape-9fd15efa4ab3302f3f9d7c7473a5377af314021c.zip
Reactivated independent reference counting in the SPObject tree.
(bzr r11608.1.88)
Diffstat (limited to '')
-rw-r--r--src/knotholder.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/knotholder.cpp b/src/knotholder.cpp
index 62119698f..32ba9075b 100644
--- a/src/knotholder.cpp
+++ b/src/knotholder.cpp
@@ -63,13 +63,16 @@ KnotHolder::KnotHolder(SPDesktop *desktop, SPItem *item, SPKnotHolderReleasedFun
g_print ("Error! Throw an exception, please!\n");
}
- g_object_ref(G_OBJECT(item)); // TODO: is this still needed after C++-ification?
+ //g_object_ref(G_OBJECT(item)); // TODO: is this still needed after C++-ification?
+ sp_object_ref(item);
sizeUpdatedConn = ControlManager::getManager().connectCtrlSizeChanged(sigc::mem_fun(*this, &KnotHolder::updateControlSizes));
}
KnotHolder::~KnotHolder() {
- g_object_unref(G_OBJECT(item));
+ //g_object_unref(G_OBJECT(item));
+ sp_object_unref(item);
+
for (std::list<KnotHolderEntity *>::iterator i = entity.begin(); i != entity.end(); ++i)
{
delete (*i);