load_aiff.c
changeset 561 87bdb4c81c0b
parent 518 8bc9b5fd2aae
child 601 05123263dab3
     1.1 --- a/load_aiff.c	Fri Jan 13 02:39:41 2012 -0500
     1.2 +++ b/load_aiff.c	Fri Jan 13 03:15:19 2012 -0500
     1.3 @@ -224,7 +224,7 @@
     1.4  	spec->samples = 4096;		/* Good default buffer size */
     1.5  
     1.6  	*audio_len = channels * numsamples * (samplesize / 8);
     1.7 -	*audio_buf = (Uint8 *)malloc(*audio_len);
     1.8 +	*audio_buf = (Uint8 *)SDL_malloc(*audio_len);
     1.9  	if ( *audio_buf == NULL ) {
    1.10  		SDL_SetError("Out of memory");
    1.11  		return(NULL);