aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/snd_codec_ogg.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-02-26 18:47:39 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-02-26 18:47:39 +0000
commitf8bc3409cbd9a36f756086259f964be795b59b4c (patch)
tree2b9c8150cab178fcc8c13ce3a36129d4b8cdcd84 /code/client/snd_codec_ogg.c
parent3cbb3f928dda70718ed5f4158f4b2254078301d8 (diff)
downloadioquake3-aero-f8bc3409cbd9a36f756086259f964be795b59b4c.tar.gz
ioquake3-aero-f8bc3409cbd9a36f756086259f964be795b59b4c.zip
* Sound related bug fixes from Thilo Schulz
git-svn-id: svn://svn.icculus.org/quake3/trunk@587 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/snd_codec_ogg.c')
-rw-r--r--code/client/snd_codec_ogg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/code/client/snd_codec_ogg.c b/code/client/snd_codec_ogg.c
index 464d8d3..9c17c0b 100644
--- a/code/client/snd_codec_ogg.c
+++ b/code/client/snd_codec_ogg.c
@@ -412,7 +412,7 @@ where we read the whole stream at once.
void *S_OGG_CodecLoad(const char *filename, snd_info_t *info)
{
snd_stream_t *stream;
- unsigned char *buffer;
+ byte *buffer;
int bytesRead;
// check if input is valid
@@ -452,8 +452,9 @@ 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);
S_OGG_CodecCloseStream(stream);
-
+
return NULL;
}