From 69cf37d70723dca2edec3d8f5aecee35a97ebb1c Mon Sep 17 00:00:00 2001 From: bulia byak Date: Tue, 16 Sep 2008 16:31:48 +0000 Subject: 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) --- src/sp-use.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/sp-use.cpp') diff --git a/src/sp-use.cpp b/src/sp-use.cpp index 2af7e1394..50b657728 100644 --- a/src/sp-use.cpp +++ b/src/sp-use.cpp @@ -344,7 +344,6 @@ sp_use_show(SPItem *item, NRArena *arena, unsigned key, unsigned flags) NRArenaItem *ac = sp_item_invoke_show(SP_ITEM(use->child), arena, key, flags); if (ac) { nr_arena_item_add_child(ai, ac, NULL); - nr_arena_item_unref(ac); } NR::translate t(use->x.computed, use->y.computed); @@ -529,7 +528,6 @@ sp_use_href_changed(SPObject */*old_ref*/, SPObject */*ref*/, SPUse *use) ai = sp_item_invoke_show(SP_ITEM(use->child), NR_ARENA_ITEM_ARENA(v->arenaitem), v->key, v->flags); if (ai) { nr_arena_item_add_child(v->arenaitem, ai, NULL); - nr_arena_item_unref(ai); } } -- cgit v1.2.3