From 8fbe3a68d4dbe17d1dea3c2f61f1cbddce6f8858 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Fri, 22 Nov 2013 15:41:53 +0000 Subject: [PATCH] nested: Remove the surface from the surface list when destroyed Otherwise if the surface is destroyed then it will crash when it later tries to render all of the surfaces. You can replicate this by doing killall weston-nested-client while the example is running. --- clients/nested.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/nested.c b/clients/nested.c index ff59014..31618b2 100644 --- a/clients/nested.c +++ b/clients/nested.c @@ -265,6 +265,8 @@ destroy_surface(struct wl_resource *resource) { struct nested_surface *surface = wl_resource_get_user_data(resource); + wl_list_remove(&surface->link); + free(surface); } -- 2.7.4