From 7946a1d87439c485c633ebeda367be67bee8d644 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 29 Dec 2020 14:57:45 +0100 Subject: [PATCH] Set the global bridge instance to null on deinit Hosts like Qtractor will deinitialize the module only to then immediately initialize it again, so without this we would get an assertion failure in `InitModule()`. --- src/plugin/vst3-plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugin/vst3-plugin.cpp b/src/plugin/vst3-plugin.cpp index 3e27c884..c0955ef8 100644 --- a/src/plugin/vst3-plugin.cpp +++ b/src/plugin/vst3-plugin.cpp @@ -54,6 +54,8 @@ bool DeinitModule() { assert(bridge != nullptr); delete bridge; + bridge = nullptr; + return true; }