Skip to content
Commit b4c42a6b authored by David Faure's avatar David Faure
Browse files

Fix crash in QThreadPrivate::finish due to terminate() without wait().

If the QThread is destroyed just after terminate() (which is non-blocking),
there's a possibility that the pthread callback (QThreadPrivate::finish)
is called after the QThread is deleted - so it will use deleted data.

In short: you must wait() after terminate(), and before deleting the QThread.
parent 8a51ec0a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment