summaryrefslogtreecommitdiff
path: root/src/channel.test.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-08-31 00:14:50 -0500
committersanine <sanine.not@pm.me>2022-08-31 00:14:50 -0500
commitb4db9391540442f9708388731d5bcd6fc59b6f5c (patch)
treec711b9d0316ca057c51faee92b71e3b4094f4076 /src/channel.test.c
parent26952167e940e900cd0e1fa7452c4f163640cbe3 (diff)
fix memory leaks in test
Diffstat (limited to 'src/channel.test.c')
-rw-r--r--src/channel.test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/channel.test.c b/src/channel.test.c
index 789756d..c0a7e73 100644
--- a/src/channel.test.c
+++ b/src/channel.test.c
@@ -18,7 +18,7 @@ lily_mock_t *mock_p_mutex_new = NULL;
PMutex * mock_p_mutex_new_()
{
mock_p_mutex_new->n_calls += 1;
- return p_mutex_new();
+ return NULL;
}
@@ -481,4 +481,6 @@ void suite_channel()
lily_run_test(test_channel_get_next_sample_panned);
lily_mock_destroy(mock_p_mutex_new);
+ lily_mock_destroy(mock_p_mutex_trylock);
+ lily_mock_destroy(mock_p_mutex_unlock);
}