From 9e889399ec4e9eb8117332069f5e87f224f64cee Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 20 Apr 2025 21:34:57 -0700 Subject: [PATCH] VGMStream: Fix memory leak 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 --- Plugins/vgmstream/vgmstream/VGMInterface.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Plugins/vgmstream/vgmstream/VGMInterface.m b/Plugins/vgmstream/vgmstream/VGMInterface.m index 8da9e21a6..35a1b94cb 100644 --- a/Plugins/vgmstream/vgmstream/VGMInterface.m +++ b/Plugins/vgmstream/vgmstream/VGMInterface.m @@ -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); }