From 81b537b36dcec25468a0e1b1a2fe14ecb5a60ce5 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sun, 6 Oct 2019 17:15:06 +0200 Subject: Fix test_callbacks memleak Regards https://github.com/profanity-im/profanity/issues/1019 --- tests/unittests/test_callbacks.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/unittests/test_callbacks.c b/tests/unittests/test_callbacks.c index 78693d4c..a1a7317e 100644 --- a/tests/unittests/test_callbacks.c +++ b/tests/unittests/test_callbacks.c @@ -15,6 +15,8 @@ void returns_no_commands(void **state) GList *commands = plugins_get_command_names(); assert_true(commands == NULL); + + callbacks_close(); } void returns_commands(void **state) @@ -54,4 +56,7 @@ void returns_commands(void **state) } assert_true(foundCommand1 && foundCommand2 && foundCommand3); + + //TODO: why does this make the test fail? + //callbacks_close(); } -- cgit 1.4.1-2-gfad0