From be69dd279b51f9d8a716253d00c99ab7b08b7105 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 28 Oct 2015 21:25:01 +0100 Subject: [PATCH] rework dbf28e3 (hidden parameters) --- gtk2_ardour/route_time_axis.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index ee1b4f4322..a07e97a276 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -2334,6 +2334,7 @@ RouteTimeAxisView::add_processor_to_subplugin_menu (boost::weak_ptr p if (x == processor_automation.end()) { rai = new ProcessorAutomationInfo (processor); + processor_automation.push_back (rai); } else { rai = *x; } @@ -2388,10 +2389,7 @@ RouteTimeAxisView::add_processor_to_subplugin_menu (boost::weak_ptr p mitem->signal_toggled().connect (sigc::bind (sigc::mem_fun(*this, &RouteTimeAxisView::processor_menu_item_toggled), rai, pan)); } - if (items.size() > 0) { - processor_automation.push_back (rai); - } else { - delete rai; + if (items.size() == 0) { return; }