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-mask.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/sp-mask.cpp') diff --git a/src/sp-mask.cpp b/src/sp-mask.cpp index c6febeb40..49a40f4ca 100644 --- a/src/sp-mask.cpp +++ b/src/sp-mask.cpp @@ -186,7 +186,6 @@ sp_mask_child_added (SPObject *object, Inkscape::XML::Node *child, Inkscape::XML SP_ITEM_REFERENCE_FLAGS); if (ac) { nr_arena_item_add_child (v->arenaitem, ac, NULL); - nr_arena_item_unref (ac); } } } @@ -318,7 +317,6 @@ sp_mask_show (SPMask *mask, NRArena *arena, unsigned int key) if (ac) { /* The order is not important in mask */ nr_arena_item_add_child (ai, ac, NULL); - nr_arena_item_unref (ac); } } } -- cgit v1.2.3