From d6214fe01d1816326702dd398c8146bd6219e912 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sun, 7 Apr 2019 02:10:44 +0200 Subject: [PATCH] Fix memory leak/lock when failing to open dual file stereo --- src/vgmstream.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vgmstream.c b/src/vgmstream.c index 787fe697..527b85b8 100644 --- a/src/vgmstream.c +++ b/src/vgmstream.c @@ -2640,7 +2640,9 @@ static void try_dual_file_stereo(VGMSTREAM * opened_vgmstream, STREAMFILE *strea mixing_update_channel(opened_vgmstream); /* notify of new channel hacked-in */ } + return; fail: + close_vgmstream(new_vgmstream); return; }