1
0
Fork 0

Fix test_callbacks memleak

Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
Michael Vetter 2019-10-06 17:15:06 +02:00
parent ae9ef75bab
commit 81b537b36d
1 changed files with 5 additions and 0 deletions

View File

@ -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();
}