fluid-fun: Don't dlclose libfluidsynth, ever

Some versions of the library do nasty things with thread
local storage without cleaning up after themselves.
This commit is contained in:
Jonas Kulla 2014-10-20 10:17:48 +02:00
parent 1c1d72b03e
commit 6145c59305
3 changed files with 4 additions and 11 deletions

View file

@ -53,7 +53,9 @@ struct SharedMidiState
~SharedMidiState()
{
if (!HAVE_FLUID || !inited)
/* We might have initialized, but if the consecutive libfluidsynth
* load failed, no resources will have been allocated */
if (!inited || !HAVE_FLUID)
return;
fluid.delete_settings(flSettings);
@ -63,8 +65,6 @@ struct SharedMidiState
assert(!synths[i].inUse);
fluid.delete_synth(synths[i].synth);
}
finiFluidFunctions();
}
void initIfNeeded(const Config &conf)