Core/Battle.net: Fixed accessing freed memory

This commit is contained in:
Shauren
2015-04-18 17:01:02 +02:00
parent a80bce124a
commit ee6e060be8

View File

@@ -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)