SurfaceActorWayland: Destroy frame callbacks when the surface gets destroyed

https://bugzilla.gnome.org/show_bug.cgi?id=739163
This commit is contained in:
Adel Gadllah 2015-08-09 12:59:44 +02:00
parent 4dc5882777
commit 038f828ab1

View File

@ -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;
}