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
|
void
|
||||||
meta_surface_actor_wayland_surface_destroyed (MetaSurfaceActorWayland *self)
|
meta_surface_actor_wayland_surface_destroyed (MetaSurfaceActorWayland *self)
|
||||||
{
|
{
|
||||||
|
MetaWaylandFrameCallback *callback, *next;
|
||||||
MetaSurfaceActorWaylandPrivate *priv =
|
MetaSurfaceActorWaylandPrivate *priv =
|
||||||
meta_surface_actor_wayland_get_instance_private (self);
|
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;
|
priv->surface = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user