mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-01 19:24:15 -04:00
Fix test_callbacks memleak
Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
parent
ae9ef75bab
commit
81b537b36d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user