music_mad.c
changeset 561 87bdb4c81c0b
parent 542 3de4970b36d4
child 600 413430798384
     1.1 --- a/music_mad.c	Fri Jan 13 02:39:41 2012 -0500
     1.2 +++ b/music_mad.c	Fri Jan 13 03:15:19 2012 -0500
     1.3 @@ -30,7 +30,7 @@
     1.4  {
     1.5    mad_data *mp3_mad;
     1.6  
     1.7 -  mp3_mad = (mad_data *)malloc(sizeof(mad_data));
     1.8 +  mp3_mad = (mad_data *)SDL_malloc(sizeof(mad_data));
     1.9    if (mp3_mad) {
    1.10  	mp3_mad->rw = rw;
    1.11  	mp3_mad->freerw = freerw;
    1.12 @@ -58,7 +58,7 @@
    1.13    if (mp3_mad->freerw) {
    1.14  	SDL_RWclose(mp3_mad->rw);
    1.15    }
    1.16 -  free(mp3_mad);
    1.17 +  SDL_free(mp3_mad);
    1.18  }
    1.19  
    1.20  /* Starts the playback. */