evince/0001-find-sidebar-Fix-memory-leak.patch
2014-11-18 14:57:48 +01:00

25 lines
765 B
Diff

From 26e52726991f3eb7dac90470ff88dc000348b1f3 Mon Sep 17 00:00:00 2001
From: Carlos Garcia Campos <carlosgc@gnome.org>
Date: Sun, 10 Aug 2014 13:05:56 +0200
Subject: [PATCH] find-sidebar: Fix memory leak
---
shell/ev-find-sidebar.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/shell/ev-find-sidebar.c b/shell/ev-find-sidebar.c
index 0f7a336..c9882e3 100644
--- a/shell/ev-find-sidebar.c
+++ b/shell/ev-find-sidebar.c
@@ -402,6 +402,7 @@ process_matches_idle (EvFindSidebar *sidebar)
page = ev_document_get_page (document, current_page);
page_text = get_page_text (document, page, &areas, &n_areas);
+ g_object_unref (page);
if (!page_text)
continue;
--
2.1.0