From 3cba51df26d4c0d489b68f441d0aff9074c1fc27 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 5 Mar 2017 22:15:30 +0100 Subject: [PATCH] Close the LXVST X11 connection for good measure --- gtk2_ardour/linux_vst_gui_support.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk2_ardour/linux_vst_gui_support.cc b/gtk2_ardour/linux_vst_gui_support.cc index 91ed0db96b..240ddc4c70 100644 --- a/gtk2_ardour/linux_vst_gui_support.cc +++ b/gtk2_ardour/linux_vst_gui_support.cc @@ -453,6 +453,10 @@ again: } } + if (LXVST_XDisplay) { + XCloseDisplay(LXVST_XDisplay); + LXVST_XDisplay = 0; + } /* some plugin UIs (looking at you, u-he^abique), do set thread-keys * and free, but not unset them. @@ -534,6 +538,7 @@ int vstfx_init (void* ptr) vstfx_error ("** ERROR ** VSTFX: Failed starting GUI event thread"); XCloseDisplay(LXVST_XDisplay); + LXVST_XDisplay = 0; gui_quit = 1; return -1;