Mercurial > sdl-ios-xcode
changeset 2883:11626a53e7bc
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 20 Dec 2008 08:41:05 +0000 |
parents | 04e89201f6ed |
children | 9dde605c7540 |
files | src/audio/SDL_audiocvt.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audio/SDL_audiocvt.c Sat Dec 20 06:46:37 2008 +0000 +++ b/src/audio/SDL_audiocvt.c Sat Dec 20 08:41:05 2008 +0000 @@ -1679,7 +1679,8 @@ } /* !!! FIXME: this memory leaks. */ - cvt->coeff = (Uint8 *) SDL_malloc((SDL_AUDIO_BITSIZE(format) / 8) * (m+1)); + cvt->coeff = + (Uint8 *) SDL_malloc((SDL_AUDIO_BITSIZE(format) / 8) * (m + 1)); if (cvt->coeff == NULL) { return -1; } @@ -1706,7 +1707,8 @@ /* Initialize the state buffer to all zeroes, and set initial position */ /* !!! FIXME: this memory leaks. */ - cvt->state_buf = (Uint8 *) SDL_malloc(cvt->len_sinc * SDL_AUDIO_BITSIZE(format) / 4); + cvt->state_buf = + (Uint8 *) SDL_malloc(cvt->len_sinc * SDL_AUDIO_BITSIZE(format) / 4); if (cvt->state_buf == NULL) { return -1; }