[PATCH libinput 1/8] test: fix a memory leak in the touch test

Peter Hutterer peter.hutterer at who-t.net
Sun Apr 26 22:52:27 PDT 2015


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

diff --git a/test/touch.c b/test/touch.c
index ac97c52..5c363f9 100644
--- a/test/touch.c
+++ b/test/touch.c
@@ -439,6 +439,8 @@ START_TEST(fake_mt_exists)
 	 * have different capabilities */
 	ck_assert(libinput_device_has_capability(device,
 						 LIBINPUT_DEVICE_CAP_POINTER));
+
+	libinput_event_destroy(event);
 }
 END_TEST
 
-- 
2.3.5



More information about the wayland-devel mailing list