diff options
Diffstat (limited to 'src/client/snd_codec_ogg.c')
-rw-r--r-- | src/client/snd_codec_ogg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/snd_codec_ogg.c b/src/client/snd_codec_ogg.c index 70ff3009..4a01c9a8 100644 --- a/src/client/snd_codec_ogg.c +++ b/src/client/snd_codec_ogg.c @@ -451,7 +451,7 @@ void *S_OGG_CodecLoad(const char *filename, snd_info_t *info) // allocate a buffer // this buffer must be free-ed by the caller of this function - buffer = Z_Malloc(info->size); + buffer = Hunk_AllocateTempMemory(info->size); if(!buffer) { S_OGG_CodecCloseStream(stream); @@ -465,7 +465,7 @@ void *S_OGG_CodecLoad(const char *filename, snd_info_t *info) // we don't even have read a single byte if(bytesRead <= 0) { - Z_Free(buffer); + Hunk_FreeTempMemory(buffer); S_OGG_CodecCloseStream(stream); return NULL; |