src/audio/SDL_audiocvt.c
changeset 2883 11626a53e7bc
parent 2881 c8d203ef4335
child 3012 7e30c2dc7783
     1.1 --- a/src/audio/SDL_audiocvt.c	Sat Dec 20 06:46:37 2008 +0000
     1.2 +++ b/src/audio/SDL_audiocvt.c	Sat Dec 20 08:41:05 2008 +0000
     1.3 @@ -1679,7 +1679,8 @@
     1.4      }
     1.5  
     1.6      /* !!! FIXME: this memory leaks. */
     1.7 -    cvt->coeff = (Uint8 *) SDL_malloc((SDL_AUDIO_BITSIZE(format) / 8) * (m+1));
     1.8 +    cvt->coeff =
     1.9 +        (Uint8 *) SDL_malloc((SDL_AUDIO_BITSIZE(format) / 8) * (m + 1));
    1.10      if (cvt->coeff == NULL) {
    1.11          return -1;
    1.12      }
    1.13 @@ -1706,7 +1707,8 @@
    1.14  
    1.15      /* Initialize the state buffer to all zeroes, and set initial position */
    1.16      /* !!! FIXME: this memory leaks. */
    1.17 -    cvt->state_buf = (Uint8 *) SDL_malloc(cvt->len_sinc * SDL_AUDIO_BITSIZE(format) / 4);
    1.18 +    cvt->state_buf =
    1.19 +        (Uint8 *) SDL_malloc(cvt->len_sinc * SDL_AUDIO_BITSIZE(format) / 4);
    1.20      if (cvt->state_buf == NULL) {
    1.21          return -1;
    1.22      }