avoid glib assertion if plugin not found

This commit is contained in:
derselbst 2017-11-25 10:14:33 +01:00
parent a1343103f1
commit 6931644a4d

View file

@ -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);