VGMStream: Fix memory leak
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:
Christopher Snowhill 2025-04-20 21:34:57 -07:00
parent 47a749ace0
commit 9e889399ec

View file

@ -70,6 +70,7 @@ static void vfs_close(libstreamfile_t* libsf) {
if(libsf->user_data) { if(libsf->user_data) {
vfs_priv_t* priv = (vfs_priv_t*)libsf->user_data; vfs_priv_t* priv = (vfs_priv_t*)libsf->user_data;
CFBridgingRelease(priv->infile); CFBridgingRelease(priv->infile);
free(priv);
} }
free(libsf); free(libsf);
} }