Initialize surface->link so we can always wl_list_remove() it

In particular, even if we never added it to the compositor surface list.
dev
Kristian Høgsberg 14 years ago
parent 4e63c6313b
commit f6b1471fd8
  1. 1
      compositor/compositor.c

@ -129,6 +129,7 @@ wlsc_surface_create(struct wlsc_compositor *compositor,
return NULL;
wl_list_init(&surface->surface.destroy_listener_list);
wl_list_init(&surface->link);
glGenTextures(1, &surface->texture);
glBindTexture(GL_TEXTURE_2D, surface->texture);

Loading…
Cancel
Save