wayland-surface: Unref the buffer after removing the destroy listener

This commit is contained in:
Jasper St. Pierre 2014-03-25 11:59:16 -04:00
parent 456e3e2429
commit 44580ddb80

View File

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