After much testing and changes to my QT application, Visual Leak Detector identified the source of a pesky leak (8 bytes). VLD reported the QT application is clean except for a
Answers:
QThread*
not destroying itself when the worker thread completed its work?Because there are different ways to use QThread
in which at least one must be able to query thread states or class members after worker has finished. Also the thread may be restarted.
QThread*
to delete the thread and worker object when work is complete?The finished
signal should be enough for you to call a slot deleting both.
QThread
be implemented differently?There are different implementations for different situations. http://qt-project.org/doc/qt-5.0/qtcore/thread-basics.html