Retain generated plugin menu
Fixes occasional crash when Menu is re-used. PluginSelector::plugin_menu() is called every time the processor box shows the context-menu. The provided menu needs to remain valid regardless of usage.
This commit is contained in:
parent
51674b0307
commit
210d03a477
@ -961,7 +961,7 @@ PluginSelector::build_plugin_menu ()
|
||||
|
||||
delete _plugin_menu;
|
||||
|
||||
_plugin_menu = manage (new Menu);
|
||||
_plugin_menu = new Menu;
|
||||
_plugin_menu->set_name("ArdourContextMenu");
|
||||
|
||||
MenuList& items = _plugin_menu->items();
|
||||
|
Loading…
Reference in New Issue
Block a user