aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-10-18 14:33:59 +0200
committerSimon Ser <contact@emersion.fr>2021-10-18 16:25:19 +0200
commitf7ea33da0a87451251683ec9a7d86f7d3da9058d (patch)
tree0a2f796a3d0055fec474c9698b79d128e7ed5272
parentb62ce3c3c83e2719e5fb02306dafe5f0bf5dd91c (diff)
scene: remove surface commit listener when node is destroyed
-rw-r--r--types/scene/wlr_scene.c1
1 files changed, 1 insertions, 0 deletions
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;