aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/wlr_seat.c3
1 files changed, 3 insertions, 0 deletions
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);