evdev: Release weston_seat with underlying evdev device
authorDaniel Stone <daniel@fooishbar.org>
Mon, 23 Jul 2012 18:54:59 +0000 (19:54 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 24 Jul 2012 00:18:06 +0000 (20:18 -0400)
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/evdev.c

index 74662b2..62f1bc1 100644 (file)
@@ -774,7 +774,7 @@ evdev_input_destroy(struct weston_seat *seat_base)
        evdev_remove_devices(seat_base);
        evdev_disable_udev_monitor(&seat->base);
 
-       wl_list_remove(&seat->base.link);
+       weston_seat_release(seat_base);
        free(seat->seat_id);
        free(seat);
 }