Skip to content

Commit

Permalink
Fixed bug 2604 - Double free in LoadWAVStream function
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 25, 2014
1 parent 22d7905 commit 67c49b1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion wavestream.c
Expand Up @@ -310,7 +310,6 @@ static SDL_RWops *LoadWAVStream (SDL_RWops *src, SDL_AudioSpec *spec,
/* Decode the audio data format */
format = (WaveFMT *)chunk.data;
if ( chunk.magic != FMT ) {
SDL_free(chunk.data);
Mix_SetError("Complex WAVE files not supported");
was_error = 1;
goto done;
Expand Down

0 comments on commit 67c49b1

Please sign in to comment.