Fixed memory leak by adding missing delete of query result.

This commit is contained in:
hunuza 2008-11-03 11:11:27 +01:00
parent 2cdd7dcfce
commit 2c9eae7599

View file

@ -6016,7 +6016,9 @@ uint32 Player::GetArenaTeamIdFromDB(uint64 guid, uint8 type)
if(!result)
return 0;
return (*result)[0].GetUInt32();
uint32 id = (*result)[0].GetUInt32();
delete result;
return id;
}
uint32 Player::GetZoneIdFromDB(uint64 guid)