mirror of
https://github.com/swaywm/sway.git
synced 2026-03-20 05:34:28 -04:00
swaybar: fix memory leaks
This commit is contained in:
parent
df48c48123
commit
b54f5e170a
2 changed files with 4 additions and 1 deletions
|
|
@ -438,6 +438,9 @@ void swaybar_seat_free(struct swaybar_seat *seat) {
|
|||
if (seat->pointer.pointer != NULL) {
|
||||
wl_pointer_release(seat->pointer.pointer);
|
||||
}
|
||||
if (seat->pointer.cursor_theme != NULL) {
|
||||
wl_cursor_theme_destroy(seat->pointer.cursor_theme);
|
||||
}
|
||||
if (seat->pointer.cursor_surface != NULL) {
|
||||
wl_surface_destroy(seat->pointer.cursor_surface);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue