mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-03-02 07:21:58 +00:00
fix segfault when deleting sample_timers
This commit is contained in:
parent
f4940e72e2
commit
60121af287
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue