Move TcpSocket's m_retxEvent.Cancel() to ~TcpSocket(), so that it is executed by all possible code paths leading up to a TcpSocket deallocation.

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-02-06 17:11:56 +00:00
parent a142d30a9d
commit 9fcd20505c

View File

@@ -98,6 +98,7 @@ TcpSocket::~TcpSocket ()
}
m_tcp = 0;
delete m_pendingData; //prevents leak
m_retxEvent.Cancel ();
}
enum Socket::SocketErrno
@@ -121,7 +122,6 @@ TcpSocket::Destroy (void)
m_node = 0;
m_endPoint = 0;
m_tcp = 0;
m_retxEvent.Cancel ();
}
int
TcpSocket::FinishBind (void)