Bug Fix: Free memory buffers used by minimp3

This was being leaked when playing static, seekable files. Oops.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-03-23 20:03:44 -07:00
parent 410395dded
commit fc2a14b0fa

View file

@ -276,6 +276,9 @@ static int mp3_seek_callback(uint64_t position, void *user_data) {
} }
- (void)close { - (void)close {
if(seekable) {
mp3dec_ex_close(&_decoder_ex);
}
if(_source) { if(_source) {
_source = nil; _source = nil;
} }