From 4889154f5bb5d343e20c58344656a653f2bb6cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 23 Feb 2012 17:38:33 -0500 Subject: [PATCH] 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. --- src/compositor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index 80ee2ba2..ef1c6ae2 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -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);