diff --git a/core/audio/plugin_host/vst2/vst2_plugin_host.cpp b/core/audio/plugin_host/vst2/vst2_plugin_host.cpp index 7c485c1..a61ac0e 100644 --- a/core/audio/plugin_host/vst2/vst2_plugin_host.cpp +++ b/core/audio/plugin_host/vst2/vst2_plugin_host.cpp @@ -169,9 +169,7 @@ vst2_plugin_host::vst2_plugin_host() : plugin_host(type) { vst2_plugin_host::~vst2_plugin_host() { spdlog::info("vst2 plugin {} destroyed", name); try_close_editor(); - if (effect_) { - dispatch(effClose); - } + effect_ = nullptr; } bool vst2_plugin_host::load_plugin(const char* path) {