mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-18 21:51:22 +00:00
fix memory leak in fluid_midi_file_read_event()
This commit is contained in:
parent
5e3d5acbdb
commit
a8be173ba3
1 changed files with 2 additions and 0 deletions
|
@ -775,6 +775,8 @@ fluid_midi_file_read_event(fluid_midi_file *mf, fluid_track_t *track)
|
|||
if(tmp == NULL)
|
||||
{
|
||||
FLUID_LOG(FLUID_PANIC, "Out of memory");
|
||||
delete_fluid_midi_event(evt);
|
||||
evt = NULL;
|
||||
result = FLUID_FAILED;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue