Fix memory leak in tst_QAbstractHttpServer::websocket()


Raw pointers to QWebSocket objects are used in the websocket test,
and they are deleted manually at the end of the test, but if the
test fails the QWebSocket objects are not deleted.

Use std::unique_ptr instead to ensure the that the QWebSocket
objects are always deleted.

Change-Id: I71c65698c17bd2a86ffca23f5a6e48874519f0b4
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
commit00646c309ebea68cc4e47dd2523f8aaa3cc1ad86
parent38cf9e05d484c6182f5f76e261ebe1f4a34e3591
authorØystein Heskestad <oystein.heskestad@qt.io>
committerØystein Heskestad <oystein.heskestad@qt.io>
commit timeWed, 29 May 2024 10:15:07 +0200