summaryrefslogtreecommitdiffstats
path: root/input/device.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-30 19:05:53 -0300
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-30 19:05:53 -0300
commit0e4204e8948d1a74149506d489d51cf4c10cb85f (patch)
tree9b32e982341f86f3e798fb49b458e5fc308725b5 /input/device.c
parent9b4bfa74d25e360932402994a32305bf2145eb34 (diff)
Remove device on free.
Diffstat (limited to 'input/device.c')
-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);
}