summaryrefslogtreecommitdiffstats
path: root/src/sp-clippath.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-09-16 16:31:48 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-09-16 16:31:48 +0000
commit69cf37d70723dca2edec3d8f5aecee35a97ebb1c (patch)
tree730a60bced14740cdff7f00dc6401ef11fc48e36 /src/sp-clippath.cpp
parentremove unneeded ref, arenaitem is reffed when created on invoke_show and unre... (diff)
downloadinkscape-69cf37d70723dca2edec3d8f5aecee35a97ebb1c.tar.gz
inkscape-69cf37d70723dca2edec3d8f5aecee35a97ebb1c.zip
remove extra unref; now ref/unref is done by show/hide; this used to stop this arenaitem from leaking, but this is now fixed properly in SPItem
(bzr r6819)
Diffstat (limited to 'src/sp-clippath.cpp')
-rw-r--r--src/sp-clippath.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/sp-clippath.cpp b/src/sp-clippath.cpp
index f56564cbe..a412694b3 100644
--- a/src/sp-clippath.cpp
+++ b/src/sp-clippath.cpp
@@ -171,7 +171,6 @@ sp_clippath_child_added(SPObject *object, Inkscape::XML::Node *child, Inkscape::
SP_ITEM_REFERENCE_FLAGS);
if (ac) {
nr_arena_item_add_child(v->arenaitem, ac, NULL);
- nr_arena_item_unref(ac);
}
}
}
@@ -271,7 +270,6 @@ sp_clippath_show(SPClipPath *cp, NRArena *arena, unsigned int key)
if (ac) {
/* The order is not important in clippath */
nr_arena_item_add_child(ai, ac, NULL);
- nr_arena_item_unref(ac);
}
}
}