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
1 changed files with 6 additions and 4 deletions

View File

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