summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-02-27 11:13:53 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-02-27 13:19:12 +1000
commit05c061c2bce03af0cf9919d313f8ef30c38f8b12 (patch)
tree61808f946d7edaee6c9045e2a385727afe54602c
parent128cdcf1050c85882c89cc96f5a0f2c76c9ad6f1 (diff)
downloadlibevdev-05c061c2bce03af0cf9919d313f8ef30c38f8b12.tar.gz
test: plug more memory leaks
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--test/test-libevdev-events.c3
-rw-r--r--test/test-libevdev-has-event.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/test/test-libevdev-events.c b/test/test-libevdev-events.c
index 666b98d..398b313 100644
--- a/test/test-libevdev-events.c
+++ b/test/test-libevdev-events.c
@@ -1060,6 +1060,9 @@ START_TEST(test_ev_rep_values)
ck_assert_int_eq(libevdev_has_event_code(dev, EV_REP, REP_PERIOD), 1);
ck_assert_int_eq(libevdev_get_event_value(dev, EV_REP, REP_DELAY), 500);
ck_assert_int_eq(libevdev_get_event_value(dev, EV_REP, REP_PERIOD), 200);
+
+ uinput_device_free(uidev);
+ libevdev_free(dev);
}
END_TEST
diff --git a/test/test-libevdev-has-event.c b/test/test-libevdev-has-event.c
index 8beb8c4..f3c1626 100644
--- a/test/test-libevdev-has-event.c
+++ b/test/test-libevdev-has-event.c
@@ -455,6 +455,7 @@ START_TEST(test_invalid_mt_device)
ck_assert(libevdev_get_event_value(dev, EV_ABS, ABS_MT_SLOT) == 1);
uinput_device_free(uidev);
+ libevdev_free(dev);
} END_TEST