summaryrefslogtreecommitdiff
path: root/src/path-seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/path-seat.c')
-rw-r--r--src/path-seat.c2
1 files changed, 1 insertions, 1 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;