summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorTim Blechmann <tim.blechmann@qt.io>2025-12-16 08:19:54 +0800
committerTim Blechmann <tim.blechmann@qt.io>2025-12-16 22:59:04 +0800
commit287474e2f855f1c1632f4c17d6f175ce6aad29a6 (patch)
treec4cf6a4df0e9e79404d7d91dad97ff50ccd14c90 /tests/manual
parentec793ce3541dfdec0efa5a4f55d64c817a245e5d (diff)
QSoundEffect: protect setResolvedAudioDevice against nullptrHEADdev
setResolvedAudioDevice will create a new player, if it owned a player before. This can lead to situations where the setting a new device after unsetting the sample can crash inside setResolvedAudioDevice due to a nullptr dereference. Clearing/unrefing the player when clearing sample will prevent this situation from happening. Fixes: QTBUG-142743 Pick-to: 6.10 6.11 Change-Id: Ifce32658ba77275d6e466798e99bc1c994721e0b Reviewed-by: Mikko Hallamaa <mikko.hallamaa@qt.io> Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Diffstat (limited to 'tests/manual')
0 files changed, 0 insertions, 0 deletions