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()`.
This commit is contained in:
Robbert van der Helm
2020-12-29 14:57:45 +01:00
parent 902b05ddc0
commit 7946a1d874
+2
View File
@@ -54,6 +54,8 @@ bool DeinitModule() {
assert(bridge != nullptr);
delete bridge;
bridge = nullptr;
return true;
}