I am getting into the valgrind tool right now.
About the QSslSocket, yes I am deleting it.
One thing that decreased the memory leak noticeably (but not at all) is moving the following code from the "performCleanExit" function in the thread:
m_socket->deleteLater();
m_authTimer->deleteLater();
m_socket->deleteLater();
m_authTimer->deleteLater();
To copy to clipboard, switch view to plain text mode
to the following code in thread destructor:
delete m_socket;
delete m_authTimer;
delete m_socket;
delete m_authTimer;
To copy to clipboard, switch view to plain text mode
It may be related to that that the deleteLater() function does not enter the event loop (in order to be executed) before the thread is deleted.
I will make further investigation and try to provide the client code as well in order to be able to reproduce the memory leak easily.
Thanks in advance
Bookmarks