scene/output_layout: Fix crash in scene_output_layout_output_destroy

Closes: #3448
This commit is contained in:
Consolatis 2022-06-07 20:52:26 +02:00
parent b89ed9015c
commit 0173275f7e

View file

@ -26,10 +26,10 @@ struct wlr_scene_output_layout_output {
static void scene_output_layout_output_destroy(
struct wlr_scene_output_layout_output *solo) {
wlr_scene_output_destroy(solo->scene_output);
wl_list_remove(&solo->layout_output_destroy.link);
wl_list_remove(&solo->scene_output_destroy.link);
wl_list_remove(&solo->link);
wlr_scene_output_destroy(solo->scene_output);
free(solo);
}