mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-04 20:55:58 +01:00
scene: remove surface commit listener when node is destroyed
This commit is contained in:
parent
b62ce3c3c8
commit
f7ea33da0a
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue