bar/wayland: plug memory leak: free seat name

This commit is contained in:
Daniel Eklöf 2020-10-29 18:02:45 +01:00
parent 73407853e4
commit 328ebe8fe9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -121,6 +121,8 @@ seat_destroy(struct seat *seat)
if (seat == NULL) if (seat == NULL)
return; return;
free(seat->name);
if (seat->pointer.theme != NULL) if (seat->pointer.theme != NULL)
wl_cursor_theme_destroy(seat->pointer.theme); wl_cursor_theme_destroy(seat->pointer.theme);
if (seat->wl_pointer != NULL) if (seat->wl_pointer != NULL)