diff options
author | sanine <sanine.not@pm.me> | 2022-09-07 11:23:34 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-09-07 11:23:34 -0500 |
commit | a77b34a4ebdc994cce7a3d1f00121f421ca31b53 (patch) | |
tree | 19901965a6e2d0e0afe5f441306acb15cd38af95 /examples/mp3.c | |
parent | 500dd00fb11efdd19aef924b0d8ff0b370c28d33 (diff) |
update README and fix memory leaks
Diffstat (limited to 'examples/mp3.c')
-rw-r--r-- | examples/mp3.c | 7 |
1 files changed, 2 insertions, 5 deletions
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; } |