From f9a2da3426be29ac07f203b946d78a30f0b3fa43 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 11 Oct 2022 19:48:36 +0200 Subject: [PATCH] LXVST: dispatch close when GUI is destroyed see also e635571f2f342 --- gtk2_ardour/linux_vst_gui_support.cc | 1 + gtk2_ardour/lxvst_plugin_ui.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/gtk2_ardour/linux_vst_gui_support.cc b/gtk2_ardour/linux_vst_gui_support.cc index b577d45194..80bc465b0f 100644 --- a/gtk2_ardour/linux_vst_gui_support.cc +++ b/gtk2_ardour/linux_vst_gui_support.cc @@ -782,6 +782,7 @@ vstfx_launch_editor (VSTState* vstfx) void vstfx_destroy_editor (VSTState* vstfx) { + assert (!gui_quit); pthread_mutex_lock (&vstfx->lock); if (vstfx->linux_window) { vstfx->destroy = TRUE; diff --git a/gtk2_ardour/lxvst_plugin_ui.cc b/gtk2_ardour/lxvst_plugin_ui.cc index 485ebd2fbe..abe45d4592 100644 --- a/gtk2_ardour/lxvst_plugin_ui.cc +++ b/gtk2_ardour/lxvst_plugin_ui.cc @@ -42,6 +42,7 @@ LXVSTPluginUI::LXVSTPluginUI (boost::shared_ptr pib, boost::shar LXVSTPluginUI::~LXVSTPluginUI () { _resize_connection.disconnect(); + vstfx_destroy_editor (_vst->state ()); // plugin destructor destroys the custom GUI, via the vstfx engine, // and then our PluginUIWindow does the rest