diff --git a/bar/wayland.c b/bar/wayland.c index f4b3cce..2b218d7 100644 --- a/bar/wayland.c +++ b/bar/wayland.c @@ -465,6 +465,7 @@ xdg_output_handle_name(void *data, struct zxdg_output_v1 *xdg_output, const char *name) { struct monitor *mon = data; + free(mon->name); mon->name = strdup(name); }