summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-16 21:00:16 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-17 11:03:30 -0600
commit4f4c540bb9ec47c77ff30e1a7ddd7d00d63c67b2 (patch)
tree8010c5fda70fb8420f021e0b16920109ea06d20e
parent8e3f5364d366fcabc16e142fbb09b0d9c376f3f4 (diff)
prevent a use-after-free at exit
-rw-r--r--dwl.c1
1 files changed, 1 insertions, 0 deletions
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) {