QtPositioning: use smart pointers in tests


Use smart pointers, so that we do not get memleaks in case some of the
tests fails. Making ASAN and memcheck happy.

Task-number: QTBUG-90836
Change-Id: I6b02e4a3131708c90564e1b08d1f41bab05a2a58
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
commit4fc8262f82d805ae9899be3828e6e60e801a958b
parent6efc44277aaf0a4fb7d2807a1e2c95c3493f601f
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeWed, 17 Feb 2021 12:37:52 +0100