aboutsummaryrefslogtreecommitdiff
path: root/games/doomretro/fix-sdl-mixer-fluidsynth.diff
blob: be12c1d8f460b30e1912d078a6d52bd4fbcc74be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- music_fluidsynth.c.orig	2018-10-31 15:59:00.000000000 +0100
+++ music_fluidsynth.c	2021-01-20 18:29:11.610459000 +0100
@@ -273,9 +273,10 @@
 static void FLUIDSYNTH_Delete(void *context)
 {
     FLUIDSYNTH_Music *music = (FLUIDSYNTH_Music *)context;
+    fluid_settings_t *settings = fluidsynth.fluid_synth_get_settings(music->synth);
     fluidsynth.delete_fluid_player(music->player);
-    fluidsynth.delete_fluid_settings(fluidsynth.fluid_synth_get_settings(music->synth));
     fluidsynth.delete_fluid_synth(music->synth);
+    fluidsynth.delete_fluid_settings(settings);
     SDL_free(music);
 }