diff --git a/fluidsynth/src/rvoice/fluid_rvoice_mixer.c b/fluidsynth/src/rvoice/fluid_rvoice_mixer.c index 7983a815..3133d242 100644 --- a/fluidsynth/src/rvoice/fluid_rvoice_mixer.c +++ b/fluidsynth/src/rvoice/fluid_rvoice_mixer.c @@ -619,7 +619,7 @@ fluid_mixer_buffers_free(fluid_mixer_buffers_t* buffers) void delete_fluid_rvoice_mixer(fluid_rvoice_mixer_t* mixer) { - if (!mixer) + if (!mixer) return; fluid_rvoice_mixer_set_threads(mixer, 0, 0); #ifdef ENABLE_MIXER_THREADS @@ -637,6 +637,7 @@ void delete_fluid_rvoice_mixer(fluid_rvoice_mixer_t* mixer) delete_fluid_revmodel(mixer->fx.reverb); if (mixer->fx.chorus) delete_fluid_chorus(mixer->fx.chorus); + FLUID_FREE(mixer->rvoices); FLUID_FREE(mixer); }