summaryrefslogtreecommitdiff
path: root/examples/mp3.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/mp3.c')
-rw-r--r--examples/mp3.c7
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;
}