mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 04:20:13 +02:00
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:
@@ -54,6 +54,8 @@ bool DeinitModule() {
|
||||
assert(bridge != nullptr);
|
||||
|
||||
delete bridge;
|
||||
bridge = nullptr;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user