From 05d2a0f4a4816de64ec67fb1f78b4f26aa6c4324 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 2 Oct 2020 15:29:04 +0200 Subject: [PATCH] VST3: explicitly close and release view A call to VST3Plugin::has_editor() can create the view of a plugin. If the GUI is never displayed, the view would not have been released, which can lead to crashes when unloading the plugin. --- libs/ardour/vst3_plugin.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/ardour/vst3_plugin.cc b/libs/ardour/vst3_plugin.cc index a1660a19f6..32c37a8fea 100644 --- a/libs/ardour/vst3_plugin.cc +++ b/libs/ardour/vst3_plugin.cc @@ -1106,6 +1106,8 @@ VST3PI::unit_data () void VST3PI::terminate () { + close_view (); + /* disable all MIDI busses */ set_event_bus_state (false);