[mutter/gbsneto/shaped-texture-leak] surface-actor: Unref shaped texture on dispose



commit 9b7d91853744db5c34b45ba1eda0fe73466bc699
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Aug 26 20:14:00 2019 +0300

    surface-actor: Unref shaped texture on dispose
    
    The MetaShapedTexture created by MetaSurfaceActor used to
    be a ClutterActor, which means destruction was taken care
    by Clutter.
    
    Now that it's a plain GObject, we need to manually clean it
    up.
    
    Cleanup the shaped texture on disposal.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/753

 src/compositor/meta-surface-actor.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/compositor/meta-surface-actor.c b/src/compositor/meta-surface-actor.c
index bf5a607ff..664362c96 100644
--- a/src/compositor/meta-surface-actor.c
+++ b/src/compositor/meta-surface-actor.c
@@ -202,6 +202,7 @@ meta_surface_actor_dispose (GObject *object)
     meta_surface_actor_get_instance_private (self);
 
   g_clear_pointer (&priv->input_region, cairo_region_destroy);
+  g_clear_object (&priv->texture);
 
   set_unobscured_region (self, NULL);
   set_clip_region (self, NULL);


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