[evince] find-sidebar: Fix memory leak



commit 26e52726991f3eb7dac90470ff88dc000348b1f3
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Aug 10 13:05:56 2014 +0200

    find-sidebar: Fix memory leak

 shell/ev-find-sidebar.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
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
@@ -466,6 +466,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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]