* Sound related bug fixes from Thilo Schulz
This commit is contained in:
parent
c93d8fc185
commit
40a5ee007f
2 changed files with 19 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue