diff options
author | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-30 19:05:53 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-30 19:05:53 -0300 |
commit | 0e4204e8948d1a74149506d489d51cf4c10cb85f (patch) | |
tree | 9b32e982341f86f3e798fb49b458e5fc308725b5 /input | |
parent | 9b4bfa74d25e360932402994a32305bf2145eb34 (diff) |
Remove device on free.
Diffstat (limited to 'input')
-rw-r--r-- | input/device.c | 1 |
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); } |