[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 // 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))) if(!_LoadHomeBind(holder->GetResult(PLAYER_LOGIN_QUERY_LOADHOMEBIND)))
{
delete result;
return false; return false;
}
InitPrimaryProffesions(); // to max set before any spell loaded InitPrimaryProffesions(); // to max set before any spell loaded

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7889" #define REVISION_NR "7890"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__