Skip to content

Commit

Permalink
backport fix for bug #3018. (from 2.0 branch commit fe757163b8f7).
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Oct 6, 2018
1 parent 5d6fc28 commit 2593c76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fluidsynth.c
Expand Up @@ -124,6 +124,7 @@ static int fluidsynth_loadsong_RW_internal(FluidSynthMidiSong *song, void *data)
if ((buffer = (char*) SDL_malloc(size))) {
if(SDL_RWread(rw, buffer, size, 1) == 1) {
if (fluidsynth.fluid_player_add_mem(song->player, buffer, size) == FLUID_OK) {
SDL_free(buffer);
return 1;
} else {
Mix_SetError("FluidSynth failed to load in-memory song");
Expand Down

0 comments on commit 2593c76

Please sign in to comment.