QtPositioning: fix unit tests


Some of the unit tests had memory leaks. This patch fixes the issues.

Task-number: QTBUG-90491
Task-number: QTBUG-90836
Change-Id: Iec9d00d852e0f5c2624e2a72e995b48b78fa525d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
commitb046171f0b507d25cdee09851352a6c877d4ecff
parentab5d9e98125645797a222de3da8045a1d80744a9
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeWed, 3 Feb 2021 12:20:37 +0100