remove 'free' in comment

This commit is contained in:
Sylvain 2021-11-22 17:00:48 +01:00 committed by Sam Lantinga
parent aef7105408
commit c0029f01d7
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ loadSound(const char *file, struct sound *s)
if (SDL_ConvertAudio(&cvt) == -1) { /* convert the sound */ if (SDL_ConvertAudio(&cvt) == -1) { /* convert the sound */
fatalError("could not convert .wav"); fatalError("could not convert .wav");
} }
SDL_free(s->buffer); /* free the original (unconverted) buffer */ SDL_free(s->buffer); /* Free the original (unconverted) buffer */
s->buffer = cvt.buf; /* point sound buffer to converted buffer */ s->buffer = cvt.buf; /* point sound buffer to converted buffer */
s->length = cvt.len_cvt; /* set sound buffer's new length */ s->length = cvt.len_cvt; /* set sound buffer's new length */
} }