test: plug a memory leak, all events need to be destroyed
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 3 Feb 2014 04:23:38 +0000 (14:23 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 5 Feb 2014 22:09:34 +0000 (08:09 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/path.c

index 24f647f..ec5d03d 100644 (file)
@@ -214,6 +214,8 @@ START_TEST(path_device_sysname)
                ck_assert(sysname != NULL && strlen(sysname) > 1);
                ck_assert(strchr(sysname, '/') == NULL);
                ck_assert_int_eq(strncmp(sysname, "event", 5), 0);
+
+               libinput_event_destroy(ev);
        }
 }
 END_TEST