mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-22 19:45:54 -04:00
Fix memleak in test_callbacks unittest
Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
parent
4f11140bb5
commit
d2a087145c
@ -17,6 +17,7 @@ void returns_no_commands(void **state)
|
|||||||
assert_true(commands == NULL);
|
assert_true(commands == NULL);
|
||||||
|
|
||||||
callbacks_close();
|
callbacks_close();
|
||||||
|
g_list_free(commands);
|
||||||
}
|
}
|
||||||
|
|
||||||
void returns_commands(void **state)
|
void returns_commands(void **state)
|
||||||
@ -57,6 +58,7 @@ void returns_commands(void **state)
|
|||||||
|
|
||||||
assert_true(foundCommand1 && foundCommand2 && foundCommand3);
|
assert_true(foundCommand1 && foundCommand2 && foundCommand3);
|
||||||
|
|
||||||
|
g_list_free(names);
|
||||||
//TODO: why does this make the test fail?
|
//TODO: why does this make the test fail?
|
||||||
//callbacks_close();
|
//callbacks_close();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user