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:
parent
410395dded
commit
fc2a14b0fa
1 changed files with 3 additions and 0 deletions
|
@ -276,6 +276,9 @@ static int mp3_seek_callback(uint64_t position, void *user_data) {
|
|||
}
|
||||
|
||||
- (void)close {
|
||||
if(seekable) {
|
||||
mp3dec_ex_close(&_decoder_ex);
|
||||
}
|
||||
if(_source) {
|
||||
_source = nil;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue