1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

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.
This commit is contained in:
ed 2021-04-22 11:58:14 +01:00
parent 3c48207d15
commit a1337a3863

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);