OGG_LoadAsWav, release as long it had been allocated.

This commit is contained in:
David Carlier 2022-11-18 17:43:29 +00:00
parent 8b12b017f7
commit 4568df7fb1

View file

@ -768,7 +768,12 @@ OGG_LoadAsWav(char *filename, wavinfo_t *info, void **buffer)
final_buffer = NULL;
}
}
if (ogg2wav_file)
{
stb_vorbis_close(ogg2wav_file);
}
FS_FreeFile(temp_buffer);
}