From fa27d781c8ac5b6c0f98ebc4ceabb54f7cd43a90 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Thu, 17 Dec 2009 16:25:03 +0100 Subject: [PATCH] Unref document after unreffing pixbuf_cache. The pixbuf_cache depends on the availabilty of the document's module library (at least for djvu-documents on Windows). Fixes bgo#604919. --- libview/ev-view.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libview/ev-view.c b/libview/ev-view.c index edc188ff..735ad134 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -4554,16 +4554,16 @@ ev_view_destroy (GtkObject *object) view->model = NULL; } - if (view->document) { - g_object_unref (view->document); - view->document = NULL; - } - if (view->pixbuf_cache) { g_object_unref (view->pixbuf_cache); view->pixbuf_cache = NULL; } + if (view->document) { + g_object_unref (view->document); + view->document = NULL; + } + if (view->page_cache) { g_object_unref (view->page_cache); view->page_cache = NULL; -- 2.43.5