set pointer to null after delete

This commit is contained in:
Jeff Becker 2016-06-08 09:56:13 -04:00
parent 895820f14c
commit 3cfbc05bf9
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -178,6 +178,7 @@ namespace client
memcpy (m_NextMessage + m_NextMessageOffset, m_Buffer, offset);
HandleNextMessage (m_NextMessage);
delete[] m_NextMessage;
m_NextMessage = nullptr
}
}
while (offset < bytes_transferred)