Fix some leaks of groups/raids (#1242)

These cases probably are exceedingly rare, but they still need to be
accounted for. (As in, I don't think anyone has run into these cases too
often to cause problems)
This commit is contained in:
Michael Cook (mackal)
2021-02-12 03:07:58 -05:00
committed by GitHub
parent f9923ffda0
commit 0ef01165ea
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1016,7 +1016,7 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
if (group->GetID() != 0)
entity_list.AddGroup(group, groupid);
else
group = nullptr;
safe_delete(group);
}
if (group)