scene/output_layout: Fix crash in scene_output_layout_output_destroy

Closes: #3448
Consolatis 2 years ago
parent b89ed9015c
commit 0173275f7e

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

Loading…
Cancel
Save