From aab1d368831c417b6cfc9df9ce8084286448ab86 Mon Sep 17 00:00:00 2001 From: Quentin Glidic Date: Sun, 13 Mar 2016 17:49:08 +0100 Subject: [PATCH] input: Implement wl_seat.release Avoid a crash because listener is NULL. Signed-off-by: Quentin Glidic Reviewed-By: David Fort Reviewed-by: Pekka Paalanen --- src/input.c | 7 +++++++ 1 file changed, 7 insertions(+) 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