13
0

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:
Robin Gareus 2019-03-06 21:21:29 +01:00
parent 51674b0307
commit 210d03a477
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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();