Merge pull request #936 from devnexen/mem_issues_fix_prop

OGG_LoadAsWav, release as long it had been allocated.
This commit is contained in:
Yamagi 2022-11-20 17:15:33 +01:00 committed by GitHub
commit 15adee3b06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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