Browse Source

VST3 Client: Fix leak caused by unnecessary manual refcounting

In older versions of the VST3SDK, hostContext is a raw pointer,
in newer versions it's a smart pointer. If we do manual
refcounting with the smart pointer, we may cause leaks.
v6.1.6
reuk 4 years ago
parent
commit
2f04d6a846
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 0 additions and 8 deletions
  1. +0
    -8
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 0
- 8
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -652,16 +652,8 @@ public:
tresult PLUGIN_API initialize (FUnknown* context) override
{
if (hostContext != context)
{
if (hostContext != nullptr)
hostContext->release();
hostContext = context;
if (hostContext != nullptr)
hostContext->addRef();
}
return kResultTrue;
}


Loading…
Cancel
Save