From 60121af287bc6c2e5c776bcfe1fad07bcff23638 Mon Sep 17 00:00:00 2001 From: derselbst Date: Mon, 30 Oct 2017 13:10:52 +0100 Subject: [PATCH] fix segfault when deleting sample_timers --- src/synth/fluid_synth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/synth/fluid_synth.c b/src/synth/fluid_synth.c index 837fef50..87850a8e 100644 --- a/src/synth/fluid_synth.c +++ b/src/synth/fluid_synth.c @@ -512,6 +512,7 @@ void delete_fluid_sample_timer(fluid_synth_t* synth, fluid_sample_timer_t* timer if (*ptr == timer) { *ptr = timer->next; FLUID_FREE(timer); + return; } ptr = &((*ptr)->next); }