diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-28 15:55:07 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-05-07 13:00:30 +0000 |
commit | 891b60bbc84ddde077072df3426539c716d47459 (patch) | |
tree | 79709efb0c9c9df2d65b8ffd4996c0a754189552 /src/widgets/styles | |
parent | 9b4b406142b05eef8ef255561f24951f25567a8e (diff) |
Fix QRunnable::ref use in QThreadPool
The reference counter could only ever be -1, 0 or 1,
as an autoDeleted QRunnable can only be in a single
thread pool.
This commits keeps the reference counting for now,
but asserts sanity, simplifies locking and fixes a
leak.
Pick-To: 5.15
Fixes: QTBUG-20251
Fixes: QTBUG-65486
Change-Id: I4de44e9a4e3710225971d1eab8f2e332513f75ad
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'src/widgets/styles')
0 files changed, 0 insertions, 0 deletions