]> www.fi.muni.cz Git - evince.git/commitdiff
Release ref on the pixbuf cache when changing document.
authorMarco Pesenti Gritti <mpg@redhat.com>
Tue, 31 May 2005 16:36:10 +0000 (16:36 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Tue, 31 May 2005 16:36:10 +0000 (16:36 +0000)
2005-05-31  Marco Pesenti Gritti <mpg@redhat.com>

        * shell/ev-view.c: (ev_view_set_document):

        Release ref on the pixbuf cache when changing
        document.

ChangeLog
shell/ev-view.c

index 37f0e4fef782825893f6e52a3dd9ec7617386f5a..8e47d00ac95479b92b6d04bf8bb6d3beeacca2be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-05-31  Marco Pesenti Gritti <mpg@redhat.com>
+
+       * shell/ev-view.c: (ev_view_set_document):
+
+       Release ref on the pixbuf cache when changing
+       document.
+
 2005-05-31  Marco Pesenti Gritti <mpg@redhat.com>
 
        * ps/ps-document.c: (ps_document_get_info):
index 45f5de07fa748735d73f27c87e853b0be867ffe7..5b81ce3812de72a809c0cc59f881afc0492068f4 100644 (file)
@@ -1944,6 +1944,11 @@ ev_view_set_document (EvView     *view,
 
                 }
 
+               if (view->pixbuf_cache) {
+                       g_object_unref (view->pixbuf_cache);
+                       view->pixbuf_cache = NULL;
+               }
+
                view->document = document;
                view->find_page = 0;
                view->find_result = 0;