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>
| commit | 00646c309ebea68cc4e47dd2523f8aaa3cc1ad86 |
| parent | 38cf9e05d484c6182f5f76e261ebe1f4a34e3591 |
| author | Øystein Heskestad <oystein.heskestad@qt.io> |
| committer | Øystein Heskestad <oystein.heskestad@qt.io> |
| commit time | Wed, 29 May 2024 10:15:07 +0200 |