about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-06 17:15:06 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-10-06 17:15:06 +0200
commit81b537b36dcec25468a0e1b1a2fe14ecb5a60ce5 (patch)
treeff3f0cd650b88642cddede049f08920d887e2cac /tests
parentae9ef75babdf1e6e2147e8d30dc307ef7a9f0636 (diff)
downloadprofani-tty-81b537b36dcec25468a0e1b1a2fe14ecb5a60ce5.tar.gz
Fix test_callbacks memleak
Regards https://github.com/profanity-im/profanity/issues/1019
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_callbacks.c5
1 files changed, 5 insertions, 0 deletions
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();
 }