]> www.fi.muni.cz Git - evince.git/commitdiff
Unref document after unreffing pixbuf_cache.
authorHib Eris <hib@hiberis.nl>
Thu, 17 Dec 2009 15:25:03 +0000 (16:25 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 19 Dec 2009 12:18:15 +0000 (13:18 +0100)
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

index edc188ff612bc3e93eaf909303356a79bff3fd3e..735ad1349e48d035c55fa74618994343325c7d23 100644 (file)
@@ -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;