[PATCH libinput 1/4] test: plug a memory leak, all events need to be destroyed

Peter Hutterer peter.hutterer at who-t.net
Mon Feb 3 13:22:32 PST 2014


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/path.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/path.c b/test/path.c
index 24f647f..ec5d03d 100644
--- a/test/path.c
+++ b/test/path.c
@@ -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
-- 
1.8.4.2



More information about the wayland-devel mailing list