From: Jonathan Blandford Date: Thu, 30 Jun 2005 05:50:58 +0000 (+0000) Subject: unref the pixbuf iff it exists. X-Git-Tag: EVINCE_0_3_3~198 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=574925f7b2618bb12dd6e8d63fcbc08b97c42126;p=evince.git unref the pixbuf iff it exists. Thu Jun 30 01:50:14 2005 Jonathan Blandford * shell/ev-pixbuf-cache.c (clear_selection_if_needed): unref the pixbuf iff it exists. --- diff --git a/ChangeLog b/ChangeLog index 5ef20ffb..dd0eeb5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 30 01:50:14 2005 Jonathan Blandford + + * shell/ev-pixbuf-cache.c (clear_selection_if_needed): unref the + pixbuf iff it exists. + Thu Jun 30 01:43:00 2005 Jonathan Blandford * shell/*: diff --git a/shell/ev-pixbuf-cache.c b/shell/ev-pixbuf-cache.c index 6c5618da..58ba3bff 100644 --- a/shell/ev-pixbuf-cache.c +++ b/shell/ev-pixbuf-cache.c @@ -653,7 +653,8 @@ clear_selection_if_needed (EvPixbufCache *pixbuf_cache, gfloat scale) { if (new_selection_pixbuf_needed (pixbuf_cache, job_info, page, scale)) { - g_object_unref (job_info->selection); + if (job_info->selection) + g_object_unref (job_info->selection); job_info->selection = NULL; job_info->selection_points.x1 = -1; }