aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornyorain <nyorain@gmail.com>2017-08-18 19:12:31 +0200
committernyorain <nyorain@gmail.com>2017-08-18 19:12:31 +0200
commit154d2ad941264709816a9644615124e30e054eb9 (patch)
treef6eeb1a17a0ed046e5a56acc43c6469257aa0f3d
parent86314caa5b6bd382c7532491d8fc02cafcdf7970 (diff)
Fix data_device destruction
-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);