backport fix for bug #2604. (from 2.0 branch commit dd498db4e82e). SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Sun, 07 Oct 2018 01:20:30 +0300
branchSDL-1.2
changeset 876fab846266822
parent 875 f067e333302e
child 877 7e3d377364e7
backport fix for bug #2604. (from 2.0 branch commit dd498db4e82e).
wavestream.c
     1.1 --- a/wavestream.c	Sun Oct 07 00:42:10 2018 +0300
     1.2 +++ b/wavestream.c	Sun Oct 07 01:20:30 2018 +0300
     1.3 @@ -324,7 +324,6 @@
     1.4  	/* Decode the audio data format */
     1.5  	format = (WaveFMT *)chunk.data;
     1.6  	if ( chunk.magic != FMT ) {
     1.7 -		SDL_free(chunk.data);
     1.8  		Mix_SetError("Complex WAVE files not supported");
     1.9  		was_error = 1;
    1.10  		goto done;