mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-08 15:33:53 +00:00
Merge pull request #1279 from EQEmu/bug_fix/group_delete
[ASan] Fix heap-use-after-free issue with groups
This commit is contained in:
commit
b24ba221e9
@ -1006,8 +1006,6 @@ void Group::DisbandGroup(bool joinraid) {
|
||||
database.ClearGroup(GetID());
|
||||
}
|
||||
|
||||
entity_list.RemoveGroup(GetID());
|
||||
|
||||
if(Leader && (Leader->IsLFP()))
|
||||
{
|
||||
Leader->UpdateLFP();
|
||||
@ -1015,6 +1013,7 @@ void Group::DisbandGroup(bool joinraid) {
|
||||
|
||||
SetLeader(nullptr);
|
||||
safe_delete(outapp);
|
||||
entity_list.RemoveGroup(GetID());
|
||||
}
|
||||
|
||||
void Group::GetMemberList(std::list<Mob*>& member_list, bool clear_list)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user