Fix memory leak/lock when failing to open dual file stereo

This commit is contained in:
bnnm 2019-04-07 02:10:44 +02:00
parent a6cd96616e
commit d6214fe01d

View File

@ -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 */ mixing_update_channel(opened_vgmstream); /* notify of new channel hacked-in */
} }
return;
fail: fail:
close_vgmstream(new_vgmstream);
return; return;
} }