evdev: call evdev_device_destroy on failure
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 7 Aug 2013 01:04:48 +0000 (11:04 +1000)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 8 Aug 2013 21:04:47 +0000 (14:04 -0700)
commit6bb15cd4a8bcfcc89ce1d0a004dc81dce0fe406d
treeee211068a3d2fc78606c377d899f068cde2e9a62
parent76d35286cf8b0850999328687e259e6c8797f0b5
evdev: call evdev_device_destroy on failure

Avoid keeping keeping what needs to be freed in sync in multiple places,
make evdev_device_destroy do the right thing instead.
src/evdev.c