mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-26 08:27:43 +01:00
delete route-groups before flushing routes.
This commit is contained in:
parent
82e5f5de91
commit
e637a40e37
1 changed files with 5 additions and 6 deletions
|
|
@ -556,6 +556,11 @@ Session::destroy ()
|
|||
delete midi_control_ui;
|
||||
delete _all_route_group;
|
||||
|
||||
DEBUG_TRACE (DEBUG::Destruction, "delete route groups\n");
|
||||
for (list<RouteGroup *>::iterator i = _route_groups.begin(); i != _route_groups.end(); ++i) {
|
||||
delete *i;
|
||||
}
|
||||
|
||||
if (click_data != default_click) {
|
||||
delete [] click_data;
|
||||
}
|
||||
|
|
@ -622,12 +627,6 @@ Session::destroy ()
|
|||
sources.clear ();
|
||||
}
|
||||
|
||||
DEBUG_TRACE (DEBUG::Destruction, "delete route groups\n");
|
||||
for (list<RouteGroup *>::iterator i = _route_groups.begin(); i != _route_groups.end(); ++i) {
|
||||
|
||||
delete *i;
|
||||
}
|
||||
|
||||
/* not strictly necessary, but doing it here allows the shared_ptr debugging to work */
|
||||
playlists.reset ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue