VGMStream: Fix memory leak
Some checks failed
Check if Cog buildable / Build Universal Cog.app (push) Has been cancelled
Some checks failed
Check if Cog buildable / Build Universal Cog.app (push) Has been cancelled
Thanks to upstream VGMStream for fixing this in the Audacious plugin, which I derived this code from in the first place, which explains the memory leak getting in. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
47a749ace0
commit
9e889399ec
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,7 @@ static void vfs_close(libstreamfile_t* libsf) {
|
|||
if(libsf->user_data) {
|
||||
vfs_priv_t* priv = (vfs_priv_t*)libsf->user_data;
|
||||
CFBridgingRelease(priv->infile);
|
||||
free(priv);
|
||||
}
|
||||
free(libsf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue