[evince] Unref document after unreffing pixbuf_cache.



commit fa27d781c8ac5b6c0f98ebc4ceabb54f7cd43a90
Author: Hib Eris <hib hiberis nl>
Date:   Thu Dec 17 16:25:03 2009 +0100

    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 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index edc188f..735ad13 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;



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