switch to malloc/free for S_CodecLoad. required for warpspasm

This commit is contained in:
Eric Wasylishen 2012-01-05 00:03:45 -07:00
parent d5de96498d
commit 131d4e8de7
3 changed files with 3 additions and 3 deletions

View file

@ -228,7 +228,7 @@ byte *S_CodecLoad(const char *filename, snd_info_t *info)
{
*info = stream->info;
byte *data = (byte *)Z_Malloc(stream->info.size);
byte *data = (byte *)malloc(stream->info.size);
if (stream->info.size != S_CodecReadStream(stream, stream->info.size, data))
{

View file

@ -80,7 +80,7 @@ int S_CodecRewindStream (snd_stream_t *stream);
/* Loads the entire file using S_CodecOpenStreamAny and
* returns a buffer containing the audio samples, which the
* caller is responsible for freeing with Z_Free. Returns
* caller is responsible for freeing with free(). Returns
* NULL if an error occurrs.
*/
byte *S_CodecLoad(const char *filename, snd_info_t *info);

View file

@ -156,7 +156,7 @@ sfxcache_t *S_LoadSound (sfx_t *s)
ResampleSfx (s, sc->speed, sc->width, data + info.dataofs);
Z_Free(data);
free(data);
return sc;
}