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.
This commit is contained in:
Jasper St. Pierre 2014-02-18 17:07:36 -05:00
parent 2a145262c7
commit 283a81eac0

View File

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