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:
parent
010f98b083
commit
4889154f5b
@ -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…
Reference in New Issue
Block a user