Browse Source

VST3: Unload macOS bundle in destructor of DLLHandle with CFBundleUnloadExecutable() to fix crash when loading some third-party plug-ins a second time

tags/2021-05-28
ed 5 years ago
parent
commit
814f317346
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp

+ 1
- 0
modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp View File

@@ -845,6 +845,7 @@ struct DLLHandle
if (auto exitFn = (ExitModuleFn) getFunction ("bundleExit"))
exitFn();
CFBundleUnloadExecutable (bundleRef);
CFRelease (bundleRef);
bundleRef = nullptr;
}


Loading…
Cancel
Save