From f7ea33da0a87451251683ec9a7d86f7d3da9058d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 18 Oct 2021 14:33:59 +0200 Subject: [PATCH] scene: remove surface commit listener when node is destroyed --- types/scene/wlr_scene.c | 1 + 1 file changed, 1 insertion(+) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index be44bccc..30d5deb9 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -101,6 +101,7 @@ void wlr_scene_node_destroy(struct wlr_scene_node *node) { break; case WLR_SCENE_NODE_SURFACE:; struct wlr_scene_surface *scene_surface = wlr_scene_surface_from_node(node); + wl_list_remove(&scene_surface->surface_commit.link); wl_list_remove(&scene_surface->surface_destroy.link); free(scene_surface); break;