mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
SurfaceActorWayland: Destroy frame callbacks when the surface gets destroyed
https://bugzilla.gnome.org/show_bug.cgi?id=739163
This commit is contained in:
parent
4dc5882777
commit
038f828ab1
@ -423,8 +423,14 @@ meta_surface_actor_wayland_get_surface (MetaSurfaceActorWayland *self)
|
||||
void
|
||||
meta_surface_actor_wayland_surface_destroyed (MetaSurfaceActorWayland *self)
|
||||
{
|
||||
MetaWaylandFrameCallback *callback, *next;
|
||||
MetaSurfaceActorWaylandPrivate *priv =
|
||||
meta_surface_actor_wayland_get_instance_private (self);
|
||||
|
||||
wl_list_for_each_safe (callback, next, &priv->frame_callback_list, link)
|
||||
{
|
||||
wl_resource_destroy (callback->resource);
|
||||
}
|
||||
|
||||
priv->surface = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user