mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-12 21:52:25 +00:00
e298fefd7f
Instead of saving the name of the driver, it would be worth to save to pointer to the selected definition instead. In this way, the function for deleting the driver does not need to search its name by parsing all the list, but it just needs to call the pointer into the saved definition (less code). This fix can be applied to MIDI drivers too. I also moved the FLUID_FREE(allnames) inside the "if(allnames != NULL)" block, nothing bad should happen even by keeping that instruction outside, but actually there is no need to call the free if allnames is NULL. |
||
---|---|---|
.. | ||
bindings | ||
drivers | ||
midi | ||
rvoice | ||
sfloader | ||
synth | ||
utils | ||
CMakeLists.txt | ||
config.cmake | ||
fluidsynth.c |