From 9380b9ce2a29db2e1426405bc416a73a17ebfc78 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sat, 7 Sep 2024 21:22:40 +0200 Subject: [PATCH] fix a use after free This line makes dwl crash after closing mpv with the switchtotag patch. --- dwl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dwl.c b/dwl.c index def2562..35bcdeb 100644 --- a/dwl.c +++ b/dwl.c @@ -1177,7 +1177,6 @@ void destroydecoration(struct wl_listener *listener, void *data) { Client *c = wl_container_of(listener, c, destroy_decoration); - c->decoration = NULL; wl_list_remove(&c->destroy_decoration.link); wl_list_remove(&c->set_decoration_mode.link);