Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libview
diff options
context:
space:
mode:
authorHib Eris <hib@hiberis.nl>2009-12-17 15:25:03 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-12-19 12:18:15 (GMT)
commitfa27d781c8ac5b6c0f98ebc4ceabb54f7cd43a90 (patch)
tree44595f8c47305679d4270d2bfe213a414ac1c19d /libview
parent11dcf8651d69fa30561d027020a46ced6f851575 (diff)
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.
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view.c10
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;