fix potential crash bug in RouteProcessorSelection
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 25 Feb 2017 18:55:22 +0000 (19:55 +0100)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 25 Feb 2017 18:55:39 +0000 (19:55 +0100)
gtk2_ardour/route_processor_selection.cc

index 836e63fcfee0885f92a27d8c8464771e0add046b..9429005e6fd3406f73b9b8981a421d3620c73ee9 100644 (file)
@@ -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);
        }
 }