From a77b34a4ebdc994cce7a3d1f00121f421ca31b53 Mon Sep 17 00:00:00 2001 From: sanine Date: Wed, 7 Sep 2022 11:23:34 -0500 Subject: update README and fix memory leaks --- examples/mp3.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/mp3.c b/examples/mp3.c index 7560bf1..7ca545d 100644 --- a/examples/mp3.c +++ b/examples/mp3.c @@ -22,10 +22,7 @@ int main() Pa_Sleep(1000); mossrose_terminate(); - free(mono->left); - free(mono); - free(stereo->left); - free(stereo->right); - free(stereo); + mossrose_free_sound(mono); + mossrose_free_sound(stereo); return 0; } -- cgit v1.2.1