mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 03:35:41 +02:00
bar/wayland: xdg_handle_output_name(): free previous monitor name
This commit is contained in:
parent
a3dd3916a8
commit
8c93b48146
1 changed files with 1 additions and 0 deletions
|
@ -465,6 +465,7 @@ xdg_output_handle_name(void *data, struct zxdg_output_v1 *xdg_output,
|
||||||
const char *name)
|
const char *name)
|
||||||
{
|
{
|
||||||
struct monitor *mon = data;
|
struct monitor *mon = data;
|
||||||
|
free(mon->name);
|
||||||
mon->name = strdup(name);
|
mon->name = strdup(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue