Near field manager (iOS): protect against dangling pointers


clearTarget calls 'invalidate' on a private target pimpl object,
which it's documented to own (via a public target object).
It's possible to call deleteLater on QNearFieldTarget object
but this potentially leaves us with a dandling pointer, since
we do not remove deleted object from 'detectedTargets'.
Protect against this using QPointer.

Change-Id: Ib970fde0233d383b727b90afeb2aedf7eb4a9e9c
Pick-to: 6.8
Fixes: QTBUG-129977
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit7b632d05477876b0a186ccb4eae77129ee75227b
parent02ae1904752fe868293fab69276224a2dd9ba151
authorTimur Pocheptsov <timur.pocheptsov@qt.io>
committerTimur Pocheptsov <timur.pocheptsov@qt.io>
commit timeWed, 30 Oct 2024 15:43:54 +0100