bar/wayland: xdg_handle_output_name(): free previous monitor name

This commit is contained in:
Daniel Eklöf 2021-04-07 07:58:16 +02:00
parent a3dd3916a8
commit 8c93b48146
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

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