From: Hib Eris Date: Thu, 17 Dec 2009 15:25:03 +0000 (+0100) Subject: Unref document after unreffing pixbuf_cache. X-Git-Tag: EVINCE_2_29_4~8 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=fa27d781c8ac5b6c0f98ebc4ceabb54f7cd43a90;p=evince.git 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. --- 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;