mirror of
https://github.com/ZDoom/ZMusic.git
synced 2025-02-17 00:52:00 +00:00
- fixed crash when FluidSynth soundfont cannot be loaded
Since FluidSynth 2.1.6, delete_fluid_settings() must be called after delete_fluid_synth()
This commit is contained in:
parent
7a7ee92ff8
commit
1dda85bbe1
1 changed files with 1 additions and 1 deletions
|
@ -141,8 +141,8 @@ FluidSynthMIDIDevice::FluidSynthMIDIDevice(int samplerate, std::vector<std::stri
|
|||
return;
|
||||
}
|
||||
|
||||
delete_fluid_settings(FluidSettings);
|
||||
delete_fluid_synth(FluidSynth);
|
||||
delete_fluid_settings(FluidSettings);
|
||||
FluidSynth = nullptr;
|
||||
FluidSettings = nullptr;
|
||||
throw std::runtime_error("Failed to load any MIDI patches.\n");
|
||||
|
|
Loading…
Reference in a new issue