diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-07 22:13:45 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-07 23:15:44 +0200 |
commit | 75273762976933841b5c0b244c4e8f29158e5519 (patch) | |
tree | 7b441bf35793cf8e4f21cf71156dbd4ff825dba5 /gtk2_ardour | |
parent | a9a6d6da4e4990833d6b00b6415c2ed8d038ddda (diff) |
fix crash when refreshing lua script list
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/script_selector.cc | 1 | ||||
-rw-r--r-- | gtk2_ardour/script_selector.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/script_selector.cc b/gtk2_ardour/script_selector.cc index 3fab40a5e7..31cea38338 100644 --- a/gtk2_ardour/script_selector.cc +++ b/gtk2_ardour/script_selector.cc @@ -113,6 +113,7 @@ void ScriptSelector::refresh () { LuaScripting::instance ().refresh (); + _script.reset (); _scripts = LuaScripting::instance ().scripts (_script_type); setup_list (); } diff --git a/gtk2_ardour/script_selector.h b/gtk2_ardour/script_selector.h index 810aafb800..b249cfe273 100644 --- a/gtk2_ardour/script_selector.h +++ b/gtk2_ardour/script_selector.h @@ -39,7 +39,7 @@ private: Gtk::Label _author; Gtk::Label _description; - ARDOUR::LuaScriptList & _scripts; + ARDOUR::LuaScriptList _scripts; ARDOUR::LuaScriptInfoPtr _script; ARDOUR::LuaScriptInfo::ScriptType _script_type; sigc::connection _combocon; |