diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2024-05-10 13:20:30 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-06-07 16:00:34 +0000 |
commit | af5aba87065164375901f5040885781fee2b4323 (patch) | |
tree | d2b61a37be158088bd00fc5f78499d983a77a530 /.tag | |
parent | 55e59daf0994ca639d3f81a3b8a69c2774a8acc2 (diff) |
Fix race condition in drag and drop6.7
The data source may be deleted by libwayland while we hold a
reference to it. This could cause crashes when dragging
and dropping repeatedly and very rapidly between two
components.
Tapping into sourceDestroyed() for this as well allows us to
recover more gracefully.
This also required adding some null pointer checks to the code,
since it wasn't really prepared for the data source
disappearing.
Pick-to: 6.5 6.2 5.15
Fixes: QTBUG-124502
Change-Id: Ic3df8bf70176c5424ac5c693f8456f61e7b2762b
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
(cherry picked from commit 792bd8510e3bc6b47bcaedfb1386390ce3a10a3a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit ddcc7e996484b1ec651d0c5c9c5e3690225a0f75)
Diffstat (limited to '.tag')
0 files changed, 0 insertions, 0 deletions