From a0a685ff2e2640b889cdccb5fd91aa32d44b8458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 22 Jan 2014 23:43:45 +0100 Subject: [PATCH] evdev: Make error handling more consistent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonas Ã…dahl --- src/evdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 43f0c1b8..ee6b0b9d 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -628,8 +628,7 @@ evdev_device_create(struct libinput_seat *seat, goto err; if (device->seat_caps == 0) { - evdev_device_destroy(device); - return NULL; + goto err; } /* If the dispatch was not set up use the fallback. */