mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
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
1 changed files with 6 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue