mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-23 04:52:07 +00:00
Merge pull request #936 from devnexen/mem_issues_fix_prop
OGG_LoadAsWav, release as long it had been allocated.
This commit is contained in:
commit
15adee3b06
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