mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-27 22:43:36 +00:00
another memory leak in jack midi driver
This commit is contained in:
parent
faef23f094
commit
33450117e9
1 changed files with 7 additions and 4 deletions
|
@ -850,8 +850,7 @@ new_fluid_jack_midi_driver(fluid_settings_t *settings,
|
|||
if(dev->parser == NULL)
|
||||
{
|
||||
FLUID_LOG(FLUID_PANIC, "Out of memory");
|
||||
FLUID_FREE(dev);
|
||||
return NULL;
|
||||
goto error_recovery;
|
||||
}
|
||||
|
||||
fluid_settings_getint(settings, "midi.autoconnect", &dev->autoconnect_inputs);
|
||||
|
@ -861,11 +860,15 @@ new_fluid_jack_midi_driver(fluid_settings_t *settings,
|
|||
|
||||
if(!dev->client_ref)
|
||||
{
|
||||
FLUID_FREE(dev);
|
||||
return NULL;
|
||||
FLUID_LOG(FLUID_PANIC, "Out of memory");
|
||||
goto error_recovery;
|
||||
}
|
||||
|
||||
return (fluid_midi_driver_t *)dev;
|
||||
|
||||
error_recovery:
|
||||
delete_fluid_jack_midi_driver((fluid_midi_driver_t *)dev);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue