From 6fb70d30efe8d93c3473b235c3ae7d7e433caaf3 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Fri, 12 Jul 2013 11:16:01 +0200 Subject: ev-pixbuf-cache: Clear the selection region also when clearing the job selection orign commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=1a9ba34 --- libview/ev-pixbuf-cache.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libview/ev-pixbuf-cache.c') 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 -- cgit v1.2.1