diff options
author | Robin Gareus <robin@gareus.org> | 2016-08-21 22:08:54 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-08-21 23:02:37 +0200 |
commit | 9e981367e2cf27cf0d19914e03f55a8c405c7188 (patch) | |
tree | 2f170b205ab167b3a7d5c09270689d0aa123a53e /gtk2_ardour/keyeditor.cc | |
parent | adb492b914ab157dfd718b0555d1d48a4e591974 (diff) |
Fix another crash at exit:
Collecting bindings after ::finish() has already destroyed half the GUI
will result in memory corruption invalid Glib::RefPtr<Gtk::Action>
Gtkmm2ext::ActionMap::get_actions()
Gtkmm2ext::Bindings::get_all_actions()
KeyEditor::Tab::populate()
KeyEditor::refresh()
Editor::set_script_action_name()
LuaInstance::session_going_away()
PBD::Destructible::drop_references()
ARDOUR::Session::destroy()
ARDOUR::Session::~Session()
ARDOUR_UI::finish()
Diffstat (limited to 'gtk2_ardour/keyeditor.cc')
-rw-r--r-- | gtk2_ardour/keyeditor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/keyeditor.cc b/gtk2_ardour/keyeditor.cc index b19b6d5fc0..aea8185f3b 100644 --- a/gtk2_ardour/keyeditor.cc +++ b/gtk2_ardour/keyeditor.cc @@ -122,7 +122,7 @@ KeyEditor::KeyEditor () add (vpacker); unbind_button.set_sensitive (false); - UpdateBindings.connect (sigc::mem_fun (*this, &KeyEditor::refresh)); + _refresh_connection = UpdateBindings.connect (sigc::mem_fun (*this, &KeyEditor::refresh)); } void |