aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/libinput/backend.c')
-rw-r--r--backend/libinput/backend.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c
index a9595df2..c7bde4a9 100644
--- a/backend/libinput/backend.c
+++ b/backend/libinput/backend.c
@@ -141,13 +141,13 @@ static void backend_destroy(struct wlr_backend *wlr_backend) {
struct wlr_libinput_backend *backend =
get_libinput_backend_from_backend(wlr_backend);
- struct wl_list *wlr_devices;
- wl_array_for_each(wlr_devices, &backend->wlr_device_lists) {
+ struct wl_list **wlr_devices_ptr;
+ wl_array_for_each(wlr_devices_ptr, &backend->wlr_device_lists) {
struct wlr_input_device *wlr_dev, *next;
- wl_list_for_each_safe(wlr_dev, next, wlr_devices, link) {
+ wl_list_for_each_safe(wlr_dev, next, *wlr_devices_ptr, link) {
wlr_input_device_destroy(wlr_dev);
}
- free(wlr_devices);
+ free(*wlr_devices_ptr);
}
wlr_backend_finish(wlr_backend);