Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug 3115 - Double free or corruption when playing some MS ADPCM…
… files Vikas Source SDL_RWops should be deleted in Mix_LoadMUSType_RW() and not in WAVStream_LoadSong_RW. To fix this, we can have two approaches: 1. Instead of calling WAVStream_FreeSong(wave), call SDL_free(wave), As it was happening in previous version -> Patch attached for latest revision(#1aca2b6d570f) 2. Before calling WAVStream_FreeSong(wave), set wave->freesrc to 0 if (!loaded) { wave->freesrc = 0; // Newly added line WAVStream_FreeSong(wave); return(NULL); }
- Loading branch information