From: Paul Davis Date: Sat, 25 Feb 2017 18:55:22 +0000 (+0100) Subject: fix potential crash bug in RouteProcessorSelection X-Git-Tag: 5.7~12 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=123fcf3cffe048b4a16bbb7442a9cd07659f4284;hp=8c1e06a5e909e56cc8712d3c18f12a584d52f027 fix potential crash bug in RouteProcessorSelection --- diff --git a/gtk2_ardour/route_processor_selection.cc b/gtk2_ardour/route_processor_selection.cc index 836e63fcfe..9429005e6f 100644 --- a/gtk2_ardour/route_processor_selection.cc +++ b/gtk2_ardour/route_processor_selection.cc @@ -119,8 +119,8 @@ RouteProcessorSelection::remove (AxisView* r) AxisViewSelection::iterator i; if ((i = find (axes.begin(), axes.end(), r)) != axes.end()) { - (*i)->set_selected (false); axes.erase (i); + (*i)->set_selected (false); } }