From e467473157f6051b8aac19da3626e189de53eb4b Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 15 Jul 2021 12:57:03 +0100 Subject: [PATCH] Standalone: Fixed a crash due to a dangling input muted value listener --- .../Standalone/juce_StandaloneFilterWindow.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h b/modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h index 689b55c628..939cae9712 100644 --- a/modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h +++ b/modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h @@ -857,7 +857,7 @@ private: editor (owner.getAudioProcessor()->hasEditor() ? owner.getAudioProcessor()->createEditorIfNeeded() : new GenericAudioProcessorEditor (*owner.getAudioProcessor())) { - Value& inputMutedValue = owner.pluginHolder->getMuteInputValue(); + inputMutedValue.referTo (owner.pluginHolder->getMuteInputValue()); if (editor != nullptr) { @@ -1014,6 +1014,7 @@ private: StandaloneFilterWindow& owner; NotificationArea notification; std::unique_ptr editor; + Value inputMutedValue; bool shouldShowNotification = false; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent)