Fix leak on connectError

We were not deleting the networkpacket not removing it from the map.
This commit is contained in:
Àlex Fiestas 2014-04-14 21:46:35 +02:00
parent 3735ca2cd1
commit e4e4004912

View file

@ -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()