summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
Diffstat (limited to 'input')
-rw-r--r--input/device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/input/device.c b/input/device.c
index 419cacd4..a9e56223 100644
--- a/input/device.c
+++ b/input/device.c
@@ -837,6 +837,7 @@ static void device_unregister(void *data)
/* Disconnect if applied */
disconnect(idev, (1 << HIDP_VIRTUAL_CABLE_UNPLUG));
+ devices = g_slist_remove(devices, idev);
input_device_free(idev);
}