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.
This commit is contained in:
Kristian Høgsberg 2012-02-23 17:38:33 -05:00
parent 010f98b083
commit 4889154f5b

View File

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