From: Marco Pesenti Gritti Date: Tue, 31 May 2005 16:36:10 +0000 (+0000) Subject: Release ref on the pixbuf cache when changing document. X-Git-Tag: EVINCE_0_3_3~304 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=fcfb6d9ad66784559bbe8bd98151e32903eff54f;p=evince.git 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. --- 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;