mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9224] Fixed memory leaks in WorldSession::HandleCharCreateOpcode
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
0a1ed5813a
commit
ce2ecedea1
2 changed files with 3 additions and 1 deletions
|
|
@ -359,6 +359,7 @@ void WorldSession::HandleCharCreateOpcode( WorldPacket & recv_data )
|
|||
{
|
||||
data << (uint8)CHAR_CREATE_UNIQUE_CLASS_LIMIT;
|
||||
SendPacket( &data );
|
||||
delete result2;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
@ -413,6 +414,7 @@ void WorldSession::HandleCharCreateOpcode( WorldPacket & recv_data )
|
|||
{
|
||||
data << (uint8)CHAR_CREATE_UNIQUE_CLASS_LIMIT;
|
||||
SendPacket( &data );
|
||||
delete result2;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue