Maybe it's better to free the team resources after notifying the watchers;
since the hooks are called in the context of the team. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13903 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -833,14 +833,6 @@ team_delete_team(struct team *team)
|
||||
RELEASE_TEAM_LOCK();
|
||||
restore_interrupts(state);
|
||||
|
||||
// free team resources
|
||||
|
||||
vm_delete_aspace(team->aspace);
|
||||
delete_owned_ports(teamID);
|
||||
sem_delete_owned_sems(teamID);
|
||||
remove_images(team);
|
||||
vfs_free_io_context(team->io_context);
|
||||
|
||||
// notify team watchers
|
||||
|
||||
{
|
||||
@@ -853,6 +845,14 @@ team_delete_team(struct team *team)
|
||||
}
|
||||
}
|
||||
|
||||
// free team resources
|
||||
|
||||
vm_delete_aspace(team->aspace);
|
||||
delete_owned_ports(teamID);
|
||||
sem_delete_owned_sems(teamID);
|
||||
remove_images(team);
|
||||
vfs_free_io_context(team->io_context);
|
||||
|
||||
// ToDo: should our death_entries be moved one level up?
|
||||
delete_team_struct(team);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user