From b4db9391540442f9708388731d5bcd6fc59b6f5c Mon Sep 17 00:00:00 2001 From: sanine Date: Wed, 31 Aug 2022 00:14:50 -0500 Subject: fix memory leaks in test --- src/channel.test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/channel.test.c') 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); } -- cgit v1.2.1