mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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
This commit is contained in:
parent
4c59eb0910
commit
9b7d918537
@ -202,6 +202,7 @@ meta_surface_actor_dispose (GObject *object)
|
|||||||
meta_surface_actor_get_instance_private (self);
|
meta_surface_actor_get_instance_private (self);
|
||||||
|
|
||||||
g_clear_pointer (&priv->input_region, cairo_region_destroy);
|
g_clear_pointer (&priv->input_region, cairo_region_destroy);
|
||||||
|
g_clear_object (&priv->texture);
|
||||||
|
|
||||||
set_unobscured_region (self, NULL);
|
set_unobscured_region (self, NULL);
|
||||||
set_clip_region (self, NULL);
|
set_clip_region (self, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user