1
0
Fork 0

wayland-surface: Don't clean up the buffer_destroy_listener twice

double_buffered_state_destroy will do this for us.
This commit is contained in:
Jasper St. Pierre 2014-02-01 16:29:09 -05:00
parent 365442c1ff
commit 1f7a6bf845

View file

@ -517,10 +517,6 @@ meta_wayland_surface_free (MetaWaylandSurface *surface)
compositor->surfaces = g_list_remove (compositor->surfaces, surface);
meta_wayland_buffer_reference (&surface->buffer_ref, NULL);
if (surface->pending.buffer)
wl_list_remove (&surface->pending.buffer_destroy_listener.link);
double_buffered_state_destroy (&surface->pending);
meta_wayland_compositor_repick (compositor);