mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-19 07:51:03 +00:00
OGG_LoadAsWav, release as long it had been allocated.
This commit is contained in:
parent
8b12b017f7
commit
4568df7fb1
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue