From: buliabyak Date: Tue, 16 Sep 2008 16:22:47 +0000 (+0000) Subject: remove unneeded ref, arenaitem is reffed when created on invoke_show and unreffed... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fba2862dc75d00bb106e0efb3c065f6863661695;p=inkscape.git remove unneeded ref, arenaitem is reffed when created on invoke_show and unreffed by invoke_hide; this ref caused most arenaitems to leak --- diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 11d572818..d678200cb 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -1663,7 +1663,7 @@ sp_item_view_new_prepend(SPItemView *list, SPItem *item, unsigned flags, unsigne new_view->next = list; new_view->flags = flags; new_view->key = key; - new_view->arenaitem = nr_arena_item_ref(arenaitem); + new_view->arenaitem = arenaitem; return new_view; }