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:
parent
ae91577f2c
commit
e0926ce2c6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue