From ecb3b0fdfaed4a8e50be6725a2801408427735f1 Mon Sep 17 00:00:00 2001 From: Nanako <469449812@qq.com> Date: Tue, 23 Jul 2024 21:10:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dvst2host=E9=80=80=E5=87=BA?= =?UTF-8?q?=E6=97=B6=E5=8F=AF=E8=83=BD=E4=BC=9A=E5=B4=A9=E6=BA=83=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/audio/plugin_host/vst2/vst2_plugin_host.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) {