From 8c93b48146762091959152f6757b40ad74bbbe5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 7 Apr 2021 07:58:16 +0200 Subject: [PATCH] bar/wayland: xdg_handle_output_name(): free previous monitor name --- bar/wayland.c | 1 + 1 file changed, 1 insertion(+) 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); }