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 /src/mossrose.c | |
parent | 500dd00fb11efdd19aef924b0d8ff0b370c28d33 (diff) |
update README and fix memory leaks
Diffstat (limited to 'src/mossrose.c')
-rw-r--r-- | src/mossrose.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mossrose.c b/src/mossrose.c index f96d394..61ee27b 100644 --- a/src/mossrose.c +++ b/src/mossrose.c @@ -161,6 +161,13 @@ struct mossrose_sound_t * mossrose_load_mp3(const char *filename) } +void mossrose_free_sound(struct mossrose_sound_t *sound) +{ + sound_free_audio(sound); + free(sound); +} + + int mossrose_terminate() { for (int i=0; i<mossrose_global.n_channels; i++) { |