mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Battle.net: Fixed accessing freed memory
This commit is contained in:
@@ -92,9 +92,10 @@ Battlenet::Session::Session(tcp::socket&& socket) : Socket(std::move(socket)), _
|
||||
|
||||
Battlenet::Session::~Session()
|
||||
{
|
||||
delete _accountInfo;
|
||||
if (_authed)
|
||||
sSessionMgr.RemoveSession(this);
|
||||
|
||||
delete _accountInfo;
|
||||
}
|
||||
|
||||
void Battlenet::Session::_SetVSFields(std::string const& pstr)
|
||||
|
||||
Reference in New Issue
Block a user