Fix marker deletion from 9479 properly.

git-svn-id: svn://localhost/ardour2/branches/3.0@9481 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-05-05 12:45:24 +00:00
parent ae91577f2c
commit e0926ce2c6

View file

@ -514,8 +514,9 @@ Editor::refresh_location_display_internal (Locations::LocationList& locations)
remove_sorted_marker (i->second->end);
}
LocationMarkers* m = i->second;
location_markers.erase (i);
delete i->second;
delete m;
}
i = tmp;
@ -717,8 +718,9 @@ Editor::location_gone (Location *location)
remove_sorted_marker (i->second->end);
}
LocationMarkers* m = i->second;
location_markers.erase (i);
delete i->second;
delete m;
break;
}
}