aboutsummaryrefslogtreecommitdiff
path: root/src/network/connection.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-02-21 17:24:27 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-02-21 17:27:31 +0100
commit009149a073ac02dd412af3c203979157976c0dd8 (patch)
treea302fc77ef59b37fde966fb3b155989d9fa3d95b /src/network/connection.cpp
parent5a5854ea9d0bc346b00f48f40b538b7a8d68b37a (diff)
downloadminetest-009149a073ac02dd412af3c203979157976c0dd8.tar.gz
minetest-009149a073ac02dd412af3c203979157976c0dd8.tar.bz2
minetest-009149a073ac02dd412af3c203979157976c0dd8.zip
Fix some memory leaks on packet sending.
Diffstat (limited to 'src/network/connection.cpp')
-rw-r--r--src/network/connection.cpp1
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()