From 847b37bf09648a44c44a313b905ef278e4afa0eb Mon Sep 17 00:00:00 2001 From: jules Date: Wed, 10 May 2017 16:37:59 +0100 Subject: [PATCH] Fixed a VST3 DLL shutdown problem on Windows --- .../format_types/juce_VST3PluginFormat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp index c6560de5d6..384aa86dca 100644 --- a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp @@ -1124,10 +1124,11 @@ struct DLLHandle typedef bool (PLUGIN_API *ExitModuleFn) (); #if JUCE_WINDOWS + releaseFactory(); + if (ExitModuleFn exitFn = (ExitModuleFn) getFunction ("ExitDll")) exitFn(); - releaseFactory(); library.close(); #else