mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 19:37:45 +01:00
Fix crash when group becomes empty but has a subgroup
Session::route_removed_from_route_group() did not delete the group when it had a subgroup associated with it. This way it was possible to have an empty track-group that resulted in various edge-case crashes/assert().
This commit is contained in:
parent
370c596322
commit
635916bf7a
1 changed files with 1 additions and 0 deletions
|
|
@ -283,6 +283,7 @@ RouteGroup::remove (std::shared_ptr<Route> r)
|
|||
}
|
||||
routes->erase (i);
|
||||
if (routes->empty()) {
|
||||
_subgroup_bus.reset ();
|
||||
group_master.reset ();
|
||||
_group_master_number = -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue