From 5c1d684255551ef25cbd59f293929aab70c403a0 Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Tue, 28 Jan 2020 21:19:50 +0100 Subject: [PATCH] cage: destroy output_layout after wl_display wl_display will destroy the outputs, whose destroy handler will remove them from the output layout. But by that point, the output layout has already been destroyed. --- cage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cage.c b/cage.c index 7b71285..ecc19dd 100644 --- a/cage.c +++ b/cage.c @@ -444,9 +444,9 @@ end: wl_event_source_remove(sigterm_source); wl_event_source_remove(sigchld_source); seat_destroy(server.seat); - wlr_output_layout_destroy(server.output_layout); /* This function is not null-safe, but we only ever get here with a proper wl_display. */ wl_display_destroy(server.wl_display); + wlr_output_layout_destroy(server.output_layout); return ret; }