Ho to all,
I seen the statement qDeleteAll(m_clients.begin(), m_clients.end()); at line 81 of SSLEchoServer.cpp file of SSEchoServer tutorial project
(Qt\Examples\Qt-5.5\websockets\sslechoserver\sslechoserver.cpp).
My dubt: why call an esplicitally delete all m_clients elements using qDeleteAll() if his destructor (m_clients's destructor) call itself?
Commenting this line I did not seen memory leaks closing application with alive connections.
Sorry for my English.
Regards
Giorgio


.
Reply With Quote


is not helpful. I can comment that line, close the application naturally (calling quit()) without memory leaks with or not the qDeleteAll(m_clients.begin(),m_clients.end());.
Bookmarks