forked from external/yambar
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)
|
||||
{
|
||||
struct monitor *mon = data;
|
||||
free(mon->name);
|
||||
mon->name = strdup(name);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue