diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index c273c1f4dd..07e8699ebc 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -478,12 +478,12 @@ void LV2PluginUI::on_window_hide() { //printf("LV2PluginUI::on_window_hide\n"); - _message_update_connection.disconnect(); if (_lv2->is_external_ui()) { if (!_external_ui_ptr) { return; } LV2_EXTERNAL_UI_HIDE(_external_ui_ptr); if (!_lv2->is_external_kx()) { return ; } + _message_update_connection.disconnect(); _screen_update_connection.disconnect(); _external_ui_ptr = NULL; suil_instance_free((SuilInstance*)_inst);