mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-28 21:02:14 +01:00
[7725] Fixed memory leak in PlayerDumpWriter.
[7726] Fixed memory leak in InstanceSaveMgr. Author: AlexDereka --HG-- branch : trunk
This commit is contained in:
@@ -555,7 +555,12 @@ void InstanceSaveManager::_ResetSave(InstanceSaveHashMap::iterator &itr)
|
||||
Group *group = *(gList.begin());
|
||||
group->UnbindInstance(itr->second->GetMapId(), itr->second->GetDifficulty(), true);
|
||||
}
|
||||
m_instanceSaveById.erase(itr++);
|
||||
InstanceSaveHashMap::iterator next;
|
||||
next = itr;
|
||||
++next;
|
||||
delete itr->second;
|
||||
m_instanceSaveById.erase(itr);
|
||||
itr = next;
|
||||
lock_instLists = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user