summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-08-26 20:14:00 +0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-08-26 20:14:00 +0300
commit9b7d91853744db5c34b45ba1eda0fe73466bc699 (patch)
treecdf8d9ffb27523ca4a145ba6f4b307feddb7a330
parent4c59eb0910c8c76661d0bbf7a7f41eb1051b098c (diff)
downloadmutter-9b7d91853744db5c34b45ba1eda0fe73466bc699.tar.gz
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
-rw-r--r--src/compositor/meta-surface-actor.c1
1 files changed, 1 insertions, 0 deletions
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);