close the streamfile we had passed on to the wav initer

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@295 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-07-06 19:44:18 +00:00
parent 6f4410dd2c
commit 56d196a648

View File

@ -41,6 +41,9 @@ VGMSTREAM * init_vgmstream_pos(STREAMFILE *streamFile) {
vgmstream = init_vgmstream_riff(streamFileWAV);
if (!vgmstream) goto fail;
close_streamfile(streamFileWAV);
streamFileWAV = NULL;
/* install loops */
if (!vgmstream->loop_flag) {
vgmstream->loop_flag = 1;