evdev: plug a potential memleak
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 7 Aug 2013 01:04:47 +0000 (11:04 +1000)
committerJonas Ådahl <jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:32 +0000 (17:51 +0100)
commitb23c3273bc9b64cb95156a8a1e4b5acfd3f2135d
treeaccd8ba024248013c0b8294cada5276f43db1ea7
parent3fe16ee03b549e8be063714ed951bef4dd0bfc63
evdev: plug a potential memleak

For touchpads, device->dispatch is set up when exiting
evdev_handle_device() and a potential source for a memleak.
This can't actually happen at the moment, as evdev_handle_device() won't
fail for touchpads after setting up the dispatch but prevent this from
happening in the future.
src/evdev.c