mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 04:20:13 +02:00
Use raw pointers for the plugin factory
Since the object cleans up after itself after the smart pointers are dropped on the host side this would result in a use after free by the smart pointers.
This commit is contained in:
@@ -38,9 +38,6 @@ bool InitModule() {
|
||||
assert(bridge == nullptr);
|
||||
|
||||
try {
|
||||
// This is the only place where we have to use manual memory management.
|
||||
// The bridge's destructor is called when the `effClose` opcode is
|
||||
// received.
|
||||
bridge = new Vst3PluginBridge();
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user