diff --git a/api/tests/pusher.c b/api/tests/pusher.c index 3c5d580b..1ea158f1 100644 --- a/api/tests/pusher.c +++ b/api/tests/pusher.c @@ -48,9 +48,9 @@ void release_pusher(mk_media *ptr) { void release_context(Context **ptr){ if (ptr && *ptr) { - release_pusher((*ptr)->pusher); - release_media((*ptr)->media); - release_player((*ptr)->player); + release_pusher(&(*ptr)->pusher); + release_media(&(*ptr)->media); + release_player(&(*ptr)->player); free(*ptr); *ptr = NULL; }