Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-pixbuf-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-pixbuf-cache.c')
-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;
}