Fixed memory leak.
This commit is contained in:
parent
0633a49b04
commit
b5927243a2
@ -50,6 +50,12 @@ TLSSocket::TLSSocket(ref <TLSSession> session, ref <socket> sok)
|
|||||||
|
|
||||||
TLSSocket::~TLSSocket()
|
TLSSocket::~TLSSocket()
|
||||||
{
|
{
|
||||||
|
if (m_ex)
|
||||||
|
{
|
||||||
|
delete m_ex;
|
||||||
|
m_ex = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
disconnect();
|
disconnect();
|
||||||
|
Loading…
Reference in New Issue
Block a user