diff --git a/src/net/tls/TLSSocket.cpp b/src/net/tls/TLSSocket.cpp index dab0338c..3cccc1e9 100644 --- a/src/net/tls/TLSSocket.cpp +++ b/src/net/tls/TLSSocket.cpp @@ -50,6 +50,12 @@ TLSSocket::TLSSocket(ref session, ref sok) TLSSocket::~TLSSocket() { + if (m_ex) + { + delete m_ex; + m_ex = NULL; + } + try { disconnect();