[PATCH libevdev 1/6] Use libevdev_reset from libevdev_free
Peter Hutterer
peter.hutterer at who-t.net
Tue Apr 1 19:17:24 PDT 2014
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
libevdev/libevdev.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/libevdev/libevdev.c b/libevdev/libevdev.c
index 4ae670e..2506a9e 100644
--- a/libevdev/libevdev.c
+++ b/libevdev/libevdev.c
@@ -200,11 +200,8 @@ libevdev_free(struct libevdev *dev)
if (!dev)
return;
- free(dev->name);
- free(dev->phys);
- free(dev->uniq);
- free(dev->mt_slot_vals);
queue_free(dev);
+ libevdev_reset(dev);
free(dev);
}
--
1.9.0
More information about the Input-tools
mailing list