mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix some memory leaks on packet sending.
This commit is contained in:
parent
5a5854ea9d
commit
009149a073
4 changed files with 13 additions and 12 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue