Fix data_device destruction

This commit is contained in:
nyorain 2017-08-18 19:12:31 +02:00
parent 86314caa5b
commit 154d2ad941

View file

@ -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);