Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tst_qeventdispatcher: fix UB in single-shot timers activation
Any of these timers must be stopped before the corresponding test function completes. Otherwise, functors will operate on dangling pointers, which can lead to failures or unreliability of other tests. Fix this by setting a correct context in the QTimer::singleShot() call. Change-Id: Icd23f6d9a2c6e7f33495d6badc4080a1b10c19f8 Reviewed-by: Volker Hilsheimer <[email protected]> Reviewed-by: Mårten Nordheim <[email protected]> Reviewed-by: Oswald Buddenhagen <[email protected]> (cherry picked from commit a93f07e) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
- Loading branch information