[mutter/gnome-3-34] shaped-texture: Plug region leak



commit 6b6e7244253b90cae69e9c9830afad4a046841bc
Author: Sebastian Keller <skeller src gnome org>
Date:   Sat Jan 11 05:53:11 2020 +0000

    shaped-texture: Plug region leak
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/1002
    
    
    (cherry picked from commit b30a29f830c3580bdf5a9b4757f4984691af7f58)

 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 5df672191..57bd4f610 100644
--- a/src/compositor/meta-shaped-texture.c
+++ b/src/compositor/meta-shaped-texture.c
@@ -243,6 +243,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]