From: Quentin Glidic <[email protected]>

Avoid a crash because listener is NULL.

Signed-off-by: Quentin Glidic <[email protected]>
---
 src/input.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/input.c b/src/input.c
index 8c106dd..5d13b08 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
-- 
2.7.2

_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to