diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index e9c315cf96..a272e339cd 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -1378,7 +1378,10 @@ RegionMoveDrag::aborted (bool movement_occurred) if (_copy) { for (list::const_iterator i = _views.begin(); i != _views.end(); ++i) { + list::const_iterator next = i; + ++next; delete i->view; + i = next; } _views.clear ();