From 154d2ad941264709816a9644615124e30e054eb9 Mon Sep 17 00:00:00 2001 From: nyorain Date: Fri, 18 Aug 2017 19:12:31 +0200 Subject: [PATCH] Fix data_device destruction --- types/wlr_seat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/wlr_seat.c b/types/wlr_seat.c index 05da9a43..c93b7d9c 100644 --- a/types/wlr_seat.c +++ b/types/wlr_seat.c @@ -120,6 +120,9 @@ static void wl_seat_destroy(struct wl_resource *resource) { if (handle->touch) { wl_resource_destroy(handle->touch); } + if (handle->data_device) { + wl_resource_destroy(handle->data_device); + } wl_signal_emit(&handle->wlr_seat->events.client_unbound, handle); wl_list_remove(&handle->link); free(handle);