Fixed memory leak.

This commit is contained in:
Vincent Richard 2012-04-06 22:26:18 +02:00
parent 0633a49b04
commit b5927243a2

View File

@ -50,6 +50,12 @@ TLSSocket::TLSSocket(ref <TLSSession> session, ref <socket> sok)
TLSSocket::~TLSSocket()
{
if (m_ex)
{
delete m_ex;
m_ex = NULL;
}
try
{
disconnect();