[mutter/wayland] wayland: Explicitly destroy the surface actor
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wayland] wayland: Explicitly destroy the surface actor
- Date: Tue, 18 Feb 2014 22:23:54 +0000 (UTC)
commit 283a81eac0a2012ed7b1b9e758a5c5ab166d3863
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Feb 18 17:07:36 2014 -0500
wayland: Explicitly destroy the surface actor
This shouldn't change anything right now, but it's better to be
careful than anything else. This is where the actor should be
destroyed.
src/wayland/meta-wayland-surface.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index b8fc0e7..050ec38 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -620,7 +620,10 @@ wl_surface_destructor (struct wl_resource *resource)
surface_set_buffer (surface, NULL);
double_buffered_state_destroy (&surface->pending);
+
+ clutter_actor_destroy (surface->surface_actor);
g_object_unref (surface->surface_actor);
+
if (surface->resource)
wl_resource_set_user_data (surface->resource, NULL);
g_slice_free (MetaWaylandSurface, surface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]