From 44580ddb80e292d61f856ace0326ff6e3f99e3f3 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 25 Mar 2014 11:59:16 -0400 Subject: [PATCH] wayland-surface: Unref the buffer after removing the destroy listener --- src/wayland/meta-wayland-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index 739c17133..39239ef71 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -83,8 +83,8 @@ surface_set_buffer (MetaWaylandSurface *surface, if (surface->buffer) { - meta_wayland_buffer_unref (surface->buffer); wl_list_remove (&surface->buffer_destroy_listener.link); + meta_wayland_buffer_unref (surface->buffer); } surface->buffer = buffer;