diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-21 17:24:27 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-21 17:27:31 +0100 |
commit | 009149a073ac02dd412af3c203979157976c0dd8 (patch) | |
tree | a302fc77ef59b37fde966fb3b155989d9fa3d95b /src/network | |
parent | 5a5854ea9d0bc346b00f48f40b538b7a8d68b37a (diff) | |
download | minetest-009149a073ac02dd412af3c203979157976c0dd8.tar.gz minetest-009149a073ac02dd412af3c203979157976c0dd8.tar.bz2 minetest-009149a073ac02dd412af3c203979157976c0dd8.zip |
Fix some memory leaks on packet sending.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/connection.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/connection.cpp b/src/network/connection.cpp index 5c529faea..7710b1c42 100644 --- a/src/network/connection.cpp +++ b/src/network/connection.cpp @@ -1729,6 +1729,7 @@ void ConnectionSendThread::connect(Address address) m_connection->SetPeerID(PEER_ID_INEXISTENT); NetworkPacket* pkt = new NetworkPacket(0,0); m_connection->Send(PEER_ID_SERVER, 0, pkt, true); + delete pkt; } void ConnectionSendThread::disconnect() |