mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
AUDIO: Add a comment to explain the cleanup in 9b90d72
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user