fix a use after free

This line makes dwl crash after closing mpv with the switchtotag patch.
This commit is contained in:
Guido Cella 2024-09-07 21:22:40 +02:00 committed by Nikita Ivanov
parent cfc80c8f44
commit 9380b9ce2a

1
dwl.c
View File

@ -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);