[mutter] shaped-texture: Plug region leak



commit b30a29f830c3580bdf5a9b4757f4984691af7f58
Author: Sebastian Keller <skeller src gnome org>
Date:   Sat Jan 11 06:53:11 2020 +0100

    shaped-texture: Plug region leak
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/1002

 src/compositor/meta-shaped-texture.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c
index 49c91ff1c..a12ecebab 100644
--- a/src/compositor/meta-shaped-texture.c
+++ b/src/compositor/meta-shaped-texture.c
@@ -239,6 +239,8 @@ meta_shaped_texture_dispose (GObject *object)
   meta_shaped_texture_set_mask_texture (stex, NULL);
   meta_shaped_texture_reset_pipelines (stex);
 
+  g_clear_pointer (&stex->opaque_region, cairo_region_destroy);
+
   g_clear_pointer (&stex->snippet, cogl_object_unref);
 
   G_OBJECT_CLASS (meta_shaped_texture_parent_class)->dispose (object);


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