Bug Fix: Free memory buffers used by minimp3
Some checks are pending
Check if Cog buildable / Build Universal Cog.app (push) Waiting to run
Some checks are pending
Check if Cog buildable / Build Universal Cog.app (push) Waiting to run
This was being leaked when playing static, seekable files. Oops. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
c24d914127
commit
184e1f14c9
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 {
|
- (void)close {
|
||||||
|
if(seekable) {
|
||||||
|
mp3dec_ex_close(&_decoder_ex);
|
||||||
|
}
|
||||||
if(_source) {
|
if(_source) {
|
||||||
_source = nil;
|
_source = nil;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue