From fcfb6d9ad66784559bbe8bd98151e32903eff54f Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 31 May 2005 16:36:10 +0000 Subject: [PATCH] Release ref on the pixbuf cache when changing document. 2005-05-31 Marco Pesenti Gritti * shell/ev-view.c: (ev_view_set_document): Release ref on the pixbuf cache when changing document. --- ChangeLog | 7 +++++++ shell/ev-view.c | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 37f0e4fe..8e47d00a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-05-31 Marco Pesenti Gritti + + * shell/ev-view.c: (ev_view_set_document): + + Release ref on the pixbuf cache when changing + document. + 2005-05-31 Marco Pesenti Gritti * ps/ps-document.c: (ps_document_get_info): diff --git a/shell/ev-view.c b/shell/ev-view.c index 45f5de07..5b81ce38 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; -- 2.43.5