Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2005-06-30 05:50:58 (GMT)
committer Jonathan Blandford <jrb@src.gnome.org>2005-06-30 05:50:58 (GMT)
commit574925f7b2618bb12dd6e8d63fcbc08b97c42126 (patch)
treebbde842d4273e9354b57994dbc5630a94516861f /shell
parente93b3a265bbc02546d230204402e3f41e83d6ab5 (diff)
unref the pixbuf iff it exists.
Thu Jun 30 01:50:14 2005 Jonathan Blandford <jrb@redhat.com> * shell/ev-pixbuf-cache.c (clear_selection_if_needed): unref the pixbuf iff it exists.
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-pixbuf-cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ev-pixbuf-cache.c b/shell/ev-pixbuf-cache.c
index 6c5618d..58ba3bf 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;
}