From 3e35cac67a8a65e3ded85c936b942b900c1d2780 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sat, 1 Feb 2014 16:29:36 -0500 Subject: [PATCH] wayland-surface: Repick after cleaning up everything else Just a code cleanup to keep all the freeing code together. --- src/wayland/meta-wayland-surface.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index d33b9f31b..5d8fd45a7 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -518,14 +518,12 @@ meta_wayland_surface_free (MetaWaylandSurface *surface) meta_wayland_buffer_reference (&surface->buffer_ref, NULL); double_buffered_state_destroy (&surface->pending); - - meta_wayland_compositor_repick (compositor); - g_object_unref (surface->surface_actor); - if (surface->resource) wl_resource_set_user_data (surface->resource, NULL); g_slice_free (MetaWaylandSurface, surface); + + meta_wayland_compositor_repick (compositor); } static void