Cleanup tst_QPlaceRatings::constructorTest()


Fix a potential memleak by using a unique_ptr to construct the copy.

Amends ff7cca09897457e906d9bec41b1457fc3aea12d9, which is not visible
in gerrit, though.

Pick-to: 6.11 6.10 6.8 6.5
Change-Id: Ib1a8f92e09f4822dedeeaf1bbe373f94383889bc
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
commit589ed66a8e0270e865facc7416bf0a689b7acda9
parentee6e14c5b260e7d0ea2dae6c3e97ae4f66d5d32c
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeMon, 23 Feb 2026 13:55:54 +0100