diff --git a/clients/nested.c b/clients/nested.c index ff590142..31618b28 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); }