diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/path-seat.c | 2 | ||||
-rw-r--r-- | src/timer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/path-seat.c b/src/path-seat.c index e0864314..ca60539b 100644 --- a/src/path-seat.c +++ b/src/path-seat.c @@ -414,7 +414,7 @@ libinput_path_remove_device(struct libinput_device *device) return; } - list_for_each(dev, &input->path_list, link) { + list_for_each_safe(dev, &input->path_list, link) { if (dev->udev_device == evdev->udev_device) { path_device_destroy(dev); break; diff --git a/src/timer.c b/src/timer.c index 9f90fdd5..22d7a962 100644 --- a/src/timer.c +++ b/src/timer.c @@ -136,7 +136,7 @@ libinput_timer_handler(struct libinput *libinput , uint64_t now) struct libinput_timer *timer; restart: - list_for_each(timer, &libinput->timer.list, link) { + list_for_each_safe(timer, &libinput->timer.list, link) { if (timer->expire == 0) continue; |