diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-08-26 20:14:00 +0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-08-26 20:14:00 +0300 |
commit | 9b7d91853744db5c34b45ba1eda0fe73466bc699 (patch) | |
tree | cdf8d9ffb27523ca4a145ba6f4b307feddb7a330 | |
parent | 4c59eb0910c8c76661d0bbf7a7f41eb1051b098c (diff) | |
download | mutter-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.c | 1 |
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); |