Various misc. tweaks and fixes based on static code analysis to minimize/fix memleaks, crashes, or other performance impacting code.

This commit is contained in:
Areloch 2020-09-19 18:25:10 -05:00
parent d76c73c252
commit 8956559bfd
44 changed files with 124 additions and 258 deletions

View file

@ -1584,8 +1584,8 @@ static void handleMasterServerListResponse( BitStream* stream, U32 key, U8 /*fla
{
if ( i != packetIndex )
{
PacketStatus* p = new PacketStatus( i, gMasterServerPing.key, currentTime );
gPacketStatusList.push_back( *p );
PacketStatus p = PacketStatus( i, gMasterServerPing.key, currentTime );
gPacketStatusList.push_back( p );
}
}
@ -1674,8 +1674,8 @@ static void handleExtendedMasterServerListResponse(BitStream* stream, U32 key, U
{
if (i != packetIndex)
{
PacketStatus* p = new PacketStatus(i, gMasterServerPing.key, currentTime);
gPacketStatusList.push_back(*p);
PacketStatus p = PacketStatus(i, gMasterServerPing.key, currentTime);
gPacketStatusList.push_back(p);
}
}