diff options
Diffstat (limited to 'libview/ev-pixbuf-cache.c')
-rw-r--r-- | libview/ev-pixbuf-cache.c | 5 |
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 |