From eb78b7d0d18f414077bff1e91ef54283bc47d1a1 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 21 Oct 2019 18:57:10 +0200 Subject: [PATCH] compositor: Plug cairo_region_t leak The MetaBackgroundActor uses a region to find out the areas that need repainting, but forgot to free it, oops. (cherry-picked from 40e6aa7d94e64d80fe07f020d75d540200004ea9) https://gitlab.gnome.org/GNOME/mutter/merge_requests/873 --- src/compositor/meta-background-actor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compositor/meta-background-actor.c b/src/compositor/meta-background-actor.c index 48f745b38..961f6721b 100644 --- a/src/compositor/meta-background-actor.c +++ b/src/compositor/meta-background-actor.c @@ -573,6 +573,8 @@ meta_background_actor_paint (ClutterActor *actor) paint_clipped_rectangle (fb, self->pipeline, &rect, &self->texture_area); } + + cairo_region_destroy (region); } static void