AUDIO: Add a comment to explain the cleanup in 9b90d72

This commit is contained in:
Le Philousophe
2025-11-04 20:45:22 +01:00
parent ae8f2875cf
commit eb4b3f02af
+9
View File
@@ -517,6 +517,15 @@ void MidiDriver_FluidSynth::close() {
_mixer->stopHandle(_mixerSoundHandle);
/*
* Don't delete the soundfont before cleaning up
* Some parts of it are still in use and cause a timer thread to be
* created to postpone the cleanup.
* The "embedded" OS abstraction layer introduced in Fluidsynth 2.5 does
* not supported threads and this causes a segfault when the final cleanup happens
* just below.
*/
delete_fluid_synth(_synth);
delete_fluid_settings(_settings);
}