[mutter/wip/carlosg/plug-leaks: 2/2] compositor: Plug cairo_region_t leak



commit ca5b4fca348f7daa70a0baa82ef81f50064455fb
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Oct 21 18:57:10 2019 +0200

    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.

 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]