From 90887b8101099e75538d28bfa07c42bfc0f1c478 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 14 Sep 2011 12:23:20 -0400 Subject: [PATCH] Removed incorrect free() call. Thanks to Leyland Needham for pointing this out! --- mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixer.c b/mixer.c index 92f8c1fd..f904cc69 100644 --- a/mixer.c +++ b/mixer.c @@ -651,7 +651,7 @@ Mix_Chunk *Mix_LoadWAV_RW(SDL_RWops *src, int freesrc) chunk->abuf = wavecvt.buf; chunk->alen = wavecvt.len_cvt; chunk->volume = MIX_MAX_VOLUME; - free(wavecvt.buf); + return(chunk); }