mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +00:00
avoid glib assertion if plugin not found
This commit is contained in:
parent
a1343103f1
commit
6931644a4d
1 changed files with 4 additions and 1 deletions
|
@ -1260,7 +1260,10 @@ static void delete_fluid_ladspa_effect(fluid_ladspa_effect_t *effect)
|
|||
effect->desc->cleanup(effect->handle);
|
||||
}
|
||||
|
||||
fluid_module_close(effect->lib);
|
||||
if(effect->lib != NULL)
|
||||
{
|
||||
fluid_module_close(effect->lib);
|
||||
}
|
||||
|
||||
FLUID_FREE(effect->name);
|
||||
FLUID_FREE(effect);
|
||||
|
|
Loading…
Reference in a new issue