gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit c78c726584c99ab9f8070facfe3862b85aa4982a
parent 552c4f8aa717e1b9327626fd124030c7737ee49f
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Tue, 18 Jan 2022 20:25:10 +0100

fix possible crash if GUI is closed and reopened and a different preset is selected afterwards

Diffstat:
Msource/jucePlugin/ui/VirusEditor.cpp | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/source/jucePlugin/ui/VirusEditor.cpp b/source/jucePlugin/ui/VirusEditor.cpp @@ -198,7 +198,12 @@ VirusEditor::VirusEditor(VirusParameterBinding &_parameterBinding, AudioPluginAu updateParts(); } -VirusEditor::~VirusEditor() { stopTimer(); setLookAndFeel(nullptr); } +VirusEditor::~VirusEditor() +{ + stopTimer(); + setLookAndFeel(nullptr); + m_controller.onProgramChange = nullptr; +} void VirusEditor::timerCallback() {