evdev: Remove output destroy notifier on device destroy

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=73895
This commit is contained in:
Kristian Høgsberg
2014-01-22 11:03:50 -08:00
parent 4fd9d2693d
commit 8259728a56
+2
View File
@@ -695,6 +695,8 @@ evdev_device_destroy(struct evdev_device *device)
if (device->source)
wl_event_source_remove(device->source);
if (device->output)
wl_list_remove(&device->output_destroy_listener.link);
wl_list_remove(&device->link);
if (device->mtdev)
mtdev_close_delete(device->mtdev);