BSynth destructor never called by BMidiSynth
|Reported by:||Pete||Owned by:||korli|
|Has a Patch:||yes||Platform:||All|
MidiPlayer and other apps that use BMidiSynth were crashing on exit. Usually the MediaEventLooper was trying to handle an event after the data had gone away. In addition Cortex and the Audio Mixer panel would never delete their representations of Synth nodes. A bit of tracing showed that the BSynth destructor was never called.
Fixed in the attached patch. delete is invoked on be_synth when all clients have gone.