From 4c12df6cf39ac1532fd251448af059f2291d53ca Mon Sep 17 00:00:00 2001 From: nick_m Date: Fri, 23 Dec 2016 23:24:54 +1100 Subject: fix thinko in previous commit. --- gtk2_ardour/ghostregion.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gtk2_ardour/ghostregion.cc') diff --git a/gtk2_ardour/ghostregion.cc b/gtk2_ardour/ghostregion.cc index e95a2b4950..a8ff1b15be 100644 --- a/gtk2_ardour/ghostregion.cc +++ b/gtk2_ardour/ghostregion.cc @@ -360,8 +360,7 @@ MidiGhostRegion::clear_events() while (it != events.end()) { delete (*it).second; - events.erase (it); - ++it; + it = events.erase (it); } _optimization_iterator = events.end (); -- cgit v1.2.3