diff options
author | Marco 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) |
commit | fcfb6d9ad66784559bbe8bd98151e32903eff54f (patch) | |
tree | 8fb1b43e74009123c8354188a773ac39b7251af5 | |
parent | 595022025f112c30cec8fa9cbda0c609045db300 (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.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | shell/ev-view.c | 5 |
2 files changed, 12 insertions, 0 deletions
@@ -1,5 +1,12 @@ 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): Fix a double free 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; |