[7890] Fixed memory leak in result one from my old commits.

This commit is contained in:
VladimirMangos 2009-05-24 22:56:33 +04:00
parent b35a9d4c99
commit 32a66d2bd2
2 changed files with 4 additions and 1 deletions

View file

@ -13943,7 +13943,10 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder )
// load home bind and check in same time class/race pair, it used later for restore broken positions
if(!_LoadHomeBind(holder->GetResult(PLAYER_LOGIN_QUERY_LOADHOMEBIND)))
{
delete result;
return false;
}
InitPrimaryProffesions(); // to max set before any spell loaded