summaryrefslogtreecommitdiff
path: root/test/log.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-03-27 08:43:04 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-03-27 08:46:47 +1000
commit20014431007a08d25c1df595fbb33d92b1bb719d (patch)
tree1ec558f5414d8904e6375033dc3a49cb0a3cb32a /test/log.c
parente49a9888bfce4397a8d3a64543c99daf0f994aa2 (diff)
downloadlibinput-20014431007a08d25c1df595fbb33d92b1bb719d.tar.gz
test: plug a couple of memory leaks
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/log.c')
-rw-r--r--test/log.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/log.c b/test/log.c
index bdd99df0..0c5508f7 100644
--- a/test/log.c
+++ b/test/log.c
@@ -84,6 +84,8 @@ START_TEST(log_handler_invoked)
ck_assert_int_gt(log_handler_called, 0);
log_handler_called = 0;
+
+ libinput_destroy(li);
}
END_TEST
@@ -100,6 +102,8 @@ START_TEST(log_userdata_NULL)
ck_assert_int_gt(log_handler_called, 0);
log_handler_called = 0;
+
+ libinput_destroy(li);
}
END_TEST
@@ -116,6 +120,8 @@ START_TEST(log_userdata)
ck_assert_int_gt(log_handler_called, 0);
log_handler_called = 0;
+
+ libinput_destroy(li);
}
END_TEST
@@ -133,6 +139,8 @@ START_TEST(log_handler_NULL)
ck_assert_int_eq(log_handler_called, 0);
log_handler_called = 0;
libinput_log_set_handler(simple_log_handler, NULL);
+
+ libinput_destroy(li);
}
END_TEST
@@ -154,6 +162,8 @@ START_TEST(log_priority)
ck_assert_int_gt(log_handler_called, 0);
log_handler_called = 0;
+
+ libinput_destroy(li);
}
END_TEST