From fba2862dc75d00bb106e0efb3c065f6863661695 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 16 Sep 2008 16:22:47 +0000 Subject: [PATCH] remove unneeded ref, arenaitem is reffed when created on invoke_show and unreffed by invoke_hide; this ref caused most arenaitems to leak --- src/sp-item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2