diff options
author | Quentin Glidic <sardemff7+git@sardemff7.net> | 2016-03-13 17:49:08 +0100 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2016-03-17 14:47:29 +0200 |
commit | aab1d368831c417b6cfc9df9ce8084286448ab86 (patch) | |
tree | 3ad017333bbe2d34f08a49cd68763e64abbd82aa | |
parent | 7a5c562d1aa7e893f0a0910a3f6860b450127acd (diff) |
input: Implement wl_seat.release
Avoid a crash because listener is NULL.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-By: David Fort <contact@hardening-consulting.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rw-r--r-- | src/input.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input.c b/src/input.c index 8c106dd2..5d13b087 100644 --- a/src/input.c +++ b/src/input.c @@ -2230,10 +2230,17 @@ seat_get_touch(struct wl_client *client, struct wl_resource *resource, seat, unbind_resource); } +static void +seat_release(struct wl_client *client, struct wl_resource *resource) +{ + wl_resource_destroy(resource); +} + static const struct wl_seat_interface seat_interface = { seat_get_pointer, seat_get_keyboard, seat_get_touch, + seat_release, }; static void |