scene: remove surface commit listener when node is destroyed

This commit is contained in:
Simon Ser 2021-10-18 14:33:59 +02:00
parent b62ce3c3c8
commit f7ea33da0a
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ void wlr_scene_node_destroy(struct wlr_scene_node *node) {
break; break;
case WLR_SCENE_NODE_SURFACE:; case WLR_SCENE_NODE_SURFACE:;
struct wlr_scene_surface *scene_surface = wlr_scene_surface_from_node(node); 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); wl_list_remove(&scene_surface->surface_destroy.link);
free(scene_surface); free(scene_surface);
break; break;