mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
Fixed memory leak by adding missing delete of query result.
This commit is contained in:
parent
2cdd7dcfce
commit
2c9eae7599
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue