compositor: Initialize destroy_listener_list for internal surfaces too

We use this to look up user data on the surface, so make sure the list is
always valid.
dev
Kristian Høgsberg 13 years ago
parent 010f98b083
commit 4889154f5b
  1. 2
      src/compositor.c

@ -199,6 +199,8 @@ weston_surface_create(struct weston_compositor *compositor)
if (surface == NULL) if (surface == NULL)
return NULL; return NULL;
wl_list_init(&surface->surface.resource.destroy_listener_list);
wl_list_init(&surface->link); wl_list_init(&surface->link);
wl_list_init(&surface->buffer_link); wl_list_init(&surface->buffer_link);

Loading…
Cancel
Save