[mutter] SurfaceActorWayland: Destroy frame callbacks when the surface gets destroyed
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] SurfaceActorWayland: Destroy frame callbacks when the surface gets destroyed
- Date: Sun, 9 Aug 2015 17:26:02 +0000 (UTC)
commit 038f828ab152a1d96152724adbb47a04a0e235fe
Author: Adel Gadllah <adel gadllah gmail com>
Date: Sun Aug 9 12:59:44 2015 +0200
SurfaceActorWayland: Destroy frame callbacks when the surface gets destroyed
https://bugzilla.gnome.org/show_bug.cgi?id=739163
src/compositor/meta-surface-actor-wayland.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/meta-surface-actor-wayland.c b/src/compositor/meta-surface-actor-wayland.c
index 069f6e9..d89f6dc 100644
--- a/src/compositor/meta-surface-actor-wayland.c
+++ b/src/compositor/meta-surface-actor-wayland.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]