summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src.scripttools.qscriptenginedebugger.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2011-03-25 18:15:39 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-03-28 13:21:02 (GMT)
commit0ee221b374ffef3657247be4c78e05689e04bef7 (patch)
treeed422aeaeca48be516e2a87867d0f7ca89c080a2 /doc/src/snippets/code/src.scripttools.qscriptenginedebugger.cpp
parent383da4084ae0cd8dcb9777cbfa90a55c56f7ad09 (diff)
downloadQt-0ee221b374ffef3657247be4c78e05689e04bef7.zip
Qt-0ee221b374ffef3657247be4c78e05689e04bef7.tar.gz
Qt-0ee221b374ffef3657247be4c78e05689e04bef7.tar.bz2
Fix the leak of QAdoptedThread and all dependent objects
if there is a QEventDispatcher in QAdoptedThread. QAdoptedThread is supposed to be destroyed when the QThreadData is destroyed. But QThreadData is ref-counted, and QEventDispatcher holds a reference to it. QEventDispatcher is supposed to be destroyed in QThreadPrivate::finish, which is supposed to be called from the destructor of QAdoptedThread. There is a circular dependence. We break it by calling finish in the callback that is called when the thread is finished. Task-number: QTBUG-17986 Reviewed-by: Brad
Diffstat (limited to 'doc/src/snippets/code/src.scripttools.qscriptenginedebugger.cpp')
0 files changed, 0 insertions, 0 deletions