Browse Source

VST3: Workaround incorrect VST3 editor ref-count bug in Adobe Audition

Audition incorrectly increments the ref-count of the IPlugView* returned from IEditController::createView() and never fully releases it. This commit reverts e0306d25 for Audition to ensure that an editor is always returned, otherwise Audition displays a blank GUI.
v6.1.6
ed 4 years ago
parent
commit
a1337a3863
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 1
- 1
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -1154,7 +1154,7 @@ public:
const auto mayCreateEditor = pluginInstance->hasEditor()
&& name != nullptr
&& std::strcmp (name, Vst::ViewType::kEditor) == 0
&& pluginInstance->getActiveEditor() == nullptr;
&& (pluginInstance->getActiveEditor() == nullptr || getHostType().isAdobeAudition());
if (mayCreateEditor)
return new JuceVST3Editor (*this, *pluginInstance);


Loading…
Cancel
Save