diff options
author | Mykola Orliuk <virkony@gmail.com> | 2020-10-18 19:12:01 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-10-18 21:25:25 +0200 |
commit | 31aa7f4c95ccc8260d5202d6f0d8c6b5c3c80061 (patch) | |
tree | f38b0ff4f374ff0076cdaaf073a8e97be24e5e2d | |
parent | 009cd634a2c4d97edf8bdfabe0141923f9e53285 (diff) |
backend/wayland: fix some keyboard/touch leaks
-rw-r--r-- | backend/wayland/seat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/wayland/seat.c b/backend/wayland/seat.c index 133f5403..1697616c 100644 --- a/backend/wayland/seat.c +++ b/backend/wayland/seat.c @@ -391,9 +391,16 @@ void destroy_wl_seats(struct wlr_wl_backend *wl) { return; } + if (seat->touch) { + wl_touch_destroy(seat->touch); + } if (seat->pointer) { wl_pointer_destroy(seat->pointer); } + if (seat->keyboard && !wl->started) { + // early termination will not be handled by input_device_destroy + wl_keyboard_destroy(seat->keyboard); + } free(seat->name); if (seat->wl_seat) { wl_seat_destroy(seat->wl_seat); |