Fix leak on connectError
We were not deleting the networkpacket not removing it from the map.
This commit is contained in:
parent
3735ca2cd1
commit
e4e4004912
1 changed files with 2 additions and 0 deletions
|
@ -157,6 +157,8 @@ void LanLinkProvider::connectError()
|
|||
np.set("tcpPort", mTcpPort);
|
||||
mUdpSocket.writeDatagram(np.serialize(), receivedIdentityPackages[socket].sender, port);
|
||||
|
||||
delete receivedIdentityPackages[socket].np;
|
||||
receivedIdentityPackages.remove(socket);
|
||||
}
|
||||
|
||||
void LanLinkProvider::connected()
|
||||
|
|
Loading…
Reference in a new issue