diff --git a/gtk2_ardour/editor_markers.cc b/gtk2_ardour/editor_markers.cc index 34fdc094b1..5ba75c647e 100644 --- a/gtk2_ardour/editor_markers.cc +++ b/gtk2_ardour/editor_markers.cc @@ -514,8 +514,8 @@ Editor::refresh_location_display_internal (Locations::LocationList& locations) remove_sorted_marker (i->second->end); } - delete i->second; location_markers.erase (i); + delete i->second; } i = tmp; @@ -717,9 +717,8 @@ Editor::location_gone (Location *location) remove_sorted_marker (i->second->end); } - - delete i->second; location_markers.erase (i); + delete i->second; break; } }