diff options
author | Romain Pokrzywka <romain.pokrzywka@bluescape.com> | 2020-03-25 00:46:15 -0500 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-05-05 07:57:01 +0000 |
commit | fd469b45100074e44e8bfb57e732b25a29dc2acd (patch) | |
tree | 4a5c0018ef97237efc3f71a7ea84db553aec6f83 /src/quick/items/qquickwindow.cpp | |
parent | defe68463230b454d3ddfb039ca423c01cddab91 (diff) |
Avoid stale QSGTexture pointer accesses
On rare occasions, it seems to be possible for the texture to be used
after deletion, which results in crashes in pixmap() after casting.
Rather than storing a raw pointer, wrap the texture in QPointer to
avoid the stale pointer accesses.
Task-number: QTBUG-80415
Change-Id: Ia0ee556f4a3a4eee777ca14065635f4bc5f90da2
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
(cherry picked from commit 1c010b202506bb7eb0f0e24ab37ad50e319abada)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/quick/items/qquickwindow.cpp')
0 files changed, 0 insertions, 0 deletions