Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2005-05-31 16:36:10 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-05-31 16:36:10 (GMT)
commitfcfb6d9ad66784559bbe8bd98151e32903eff54f (patch)
tree8fb1b43e74009123c8354188a773ac39b7251af5 /shell
parent595022025f112c30cec8fa9cbda0c609045db300 (diff)
Release ref on the pixbuf cache when changing document.
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.
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-view.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index 45f5de0..5b81ce3 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -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;