LXVST: dispatch close when GUI is destroyed

see also e635571f2f
This commit is contained in:
Robin Gareus 2022-10-11 19:48:36 +02:00
parent 45398fb65c
commit f9a2da3426
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 2 additions and 0 deletions

View File

@ -782,6 +782,7 @@ vstfx_launch_editor (VSTState* vstfx)
void void
vstfx_destroy_editor (VSTState* vstfx) vstfx_destroy_editor (VSTState* vstfx)
{ {
assert (!gui_quit);
pthread_mutex_lock (&vstfx->lock); pthread_mutex_lock (&vstfx->lock);
if (vstfx->linux_window) { if (vstfx->linux_window) {
vstfx->destroy = TRUE; vstfx->destroy = TRUE;

View File

@ -42,6 +42,7 @@ LXVSTPluginUI::LXVSTPluginUI (boost::shared_ptr<PlugInsertBase> pib, boost::shar
LXVSTPluginUI::~LXVSTPluginUI () LXVSTPluginUI::~LXVSTPluginUI ()
{ {
_resize_connection.disconnect(); _resize_connection.disconnect();
vstfx_destroy_editor (_vst->state ());
// plugin destructor destroys the custom GUI, via the vstfx engine, // plugin destructor destroys the custom GUI, via the vstfx engine,
// and then our PluginUIWindow does the rest // and then our PluginUIWindow does the rest