13
0

delete route-groups before flushing routes.

This commit is contained in:
Robin Gareus 2014-09-10 20:43:30 +02:00
parent cadbf191da
commit f6766d4a2f

View File

@ -492,6 +492,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;
}
@ -557,12 +562,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 ();