forked from external/yambar
bar/wayland: plug memory leak: free seat name
This commit is contained in:
parent
73407853e4
commit
328ebe8fe9
1 changed files with 2 additions and 0 deletions
|
@ -121,6 +121,8 @@ seat_destroy(struct seat *seat)
|
|||
if (seat == NULL)
|
||||
return;
|
||||
|
||||
free(seat->name);
|
||||
|
||||
if (seat->pointer.theme != NULL)
|
||||
wl_cursor_theme_destroy(seat->pointer.theme);
|
||||
if (seat->wl_pointer != NULL)
|
||||
|
|
Loading…
Add table
Reference in a new issue