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
Please register or sign in to comment