mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-13 00:34:11 +00:00
snd_xmp.c: add missing Hunk_Free to xmp_load_module_from_memory failure
This commit is contained in:
parent
673a4a7315
commit
d27d3db19f
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ static qboolean S_XMP_CodecOpenStream (snd_stream_t *stream)
|
||||||
moddata = (byte *) Hunk_Alloc(len);
|
moddata = (byte *) Hunk_Alloc(len);
|
||||||
FS_fread(moddata, 1, len, &stream->fh);
|
FS_fread(moddata, 1, len, &stream->fh);
|
||||||
if (xmp_load_module_from_memory(c, moddata, len) < 0) {
|
if (xmp_load_module_from_memory(c, moddata, len) < 0) {
|
||||||
|
Hunk_FreeToLowMark(mark);
|
||||||
Con_DPrintf("Could not load module %s\n", stream->name);
|
Con_DPrintf("Could not load module %s\n", stream->name);
|
||||||
goto err1;
|
goto err1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue