From 7d2cfd27e18af1b31fa69fa7dec6aa5ddd760752 Mon Sep 17 00:00:00 2001 From: Alex Birch Date: Tue, 27 Feb 2018 23:42:16 +0000 Subject: [PATCH] this is sometimes resulting in freeing memory which has not yet been malloced. need to understand better what's going on. possibly two concurrent invocations of initialiseSynth racing. --- Source/FluidSynthModel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/FluidSynthModel.cpp b/Source/FluidSynthModel.cpp index a64b2df..2510c2f 100644 --- a/Source/FluidSynthModel.cpp +++ b/Source/FluidSynthModel.cpp @@ -20,10 +20,10 @@ FluidSynthModel::~FluidSynthModel() { } void FluidSynthModel::initialise() { - if (initialised) { - delete_fluid_synth(synth); - delete_fluid_settings(settings); - } +// if (initialised) { +// delete_fluid_synth(synth); +// delete_fluid_settings(settings); +// } settings = new_fluid_settings(); // https://sourceforge.net/p/fluidsynth/wiki/FluidSettings/ fluid_settings_setstr(settings, "synth.verbose", "yes");