修复vst2host退出时可能会崩溃的问题

This commit is contained in:
Nanako 2024-07-23 21:10:09 +08:00
parent bcfcb91cca
commit ecb3b0fdfa

View File

@ -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) {