Fix data_device destruction

This commit is contained in:
nyorain 2017-08-18 19:12:31 +02:00
parent 86314caa5b
commit 154d2ad941
1 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,9 @@ static void wl_seat_destroy(struct wl_resource *resource) {
if (handle->touch) { if (handle->touch) {
wl_resource_destroy(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_signal_emit(&handle->wlr_seat->events.client_unbound, handle);
wl_list_remove(&handle->link); wl_list_remove(&handle->link);
free(handle); free(handle);