diff --git a/src/libinput-seat.c b/src/libinput-seat.c index c9f9ed20..5f91b680 100644 --- a/src/libinput-seat.c +++ b/src/libinput-seat.c @@ -105,6 +105,7 @@ static void device_removed(struct udev_input *input, struct libinput_device *libinput_device) { struct evdev_device *device; + device = libinput_device_get_user_data(libinput_device); evdev_device_destroy(device); }