The pixbuf_cache depends on the availabilty of the document's module
library (at least for djvu-documents on Windows). Fixes bgo#604919.
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;