Allow for NULL in libinput_destroy

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2013-12-09 21:27:31 +10:00 committed by Jonas Ådahl
parent c188943568
commit 2ee299afcc

View file

@ -270,6 +270,10 @@ void
udev_input_destroy(struct udev_input *input)
{
struct libinput_seat *seat, *next;
if (input == NULL)
return;
udev_input_disable(input);
list_for_each_safe(seat, next, &input->base.seat_list, link) {
notify_removed_seat(seat);