From 4f4c540bb9ec47c77ff30e1a7ddd7d00d63c67b2 Mon Sep 17 00:00:00 2001 From: Leonardo Hernández Hernández Date: Thu, 16 Nov 2023 21:00:16 -0600 Subject: prevent a use-after-free at exit --- dwl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dwl.c b/dwl.c index 37dc27f..82b7248 100644 --- a/dwl.c +++ b/dwl.c @@ -627,6 +627,7 @@ cleanup(void) { #ifdef XWAYLAND wlr_xwayland_destroy(xwayland); + xwayland = NULL; #endif wl_display_destroy_clients(dpy); if (child_pid > 0) { -- cgit v1.2.3