evdev: Remove output destroy notifier on device destroy
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=73895
This commit is contained in:
@@ -695,6 +695,8 @@ evdev_device_destroy(struct evdev_device *device)
|
|||||||
|
|
||||||
if (device->source)
|
if (device->source)
|
||||||
wl_event_source_remove(device->source);
|
wl_event_source_remove(device->source);
|
||||||
|
if (device->output)
|
||||||
|
wl_list_remove(&device->output_destroy_listener.link);
|
||||||
wl_list_remove(&device->link);
|
wl_list_remove(&device->link);
|
||||||
if (device->mtdev)
|
if (device->mtdev)
|
||||||
mtdev_close_delete(device->mtdev);
|
mtdev_close_delete(device->mtdev);
|
||||||
|
|||||||
Reference in New Issue
Block a user