修复vst2host退出时可能会崩溃的问题
This commit is contained in:
parent
bcfcb91cca
commit
ecb3b0fdfa
@ -169,9 +169,7 @@ vst2_plugin_host::vst2_plugin_host() : plugin_host(type) {
|
|||||||
vst2_plugin_host::~vst2_plugin_host() {
|
vst2_plugin_host::~vst2_plugin_host() {
|
||||||
spdlog::info("vst2 plugin {} destroyed", name);
|
spdlog::info("vst2 plugin {} destroyed", name);
|
||||||
try_close_editor();
|
try_close_editor();
|
||||||
if (effect_) {
|
effect_ = nullptr;
|
||||||
dispatch(effClose);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool vst2_plugin_host::load_plugin(const char* path) {
|
bool vst2_plugin_host::load_plugin(const char* path) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user