summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libview/ev-pixbuf-cache.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libview/ev-pixbuf-cache.c b/libview/ev-pixbuf-cache.c
index ca4ffacb..1e5402e4 100644
--- a/libview/ev-pixbuf-cache.c
+++ b/libview/ev-pixbuf-cache.c
@@ -1174,6 +1174,11 @@ clear_job_selection (CacheJobInfo *job_info)
cairo_surface_destroy (job_info->selection);
job_info->selection = NULL;
}
+
+ if (job_info->selection_region) {
+ cairo_region_destroy (job_info->selection_region);
+ job_info->selection_region = NULL;
+ }
}
/* This function will reset the selection on pages that no longer have them, and