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:
Robbert van der Helm
2020-12-07 18:23:04 +01:00
parent d79bc3b936
commit 7b3a6af7d1
3 changed files with 10 additions and 13 deletions
-3
View File
@@ -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;