Fixed memory leak in test suite.

This commit is contained in:
Nathan Osman
2015-07-08 17:31:04 -07:00
parent ad8989bf07
commit b841ae16de
3 changed files with 8 additions and 8 deletions

View File

@@ -90,9 +90,9 @@ void TestQFilesystemHandler::testRequests()
QTRY_VERIFY(pair.isConnected());
QSimpleHttpClient client(pair.client());
QHttpSocket *socket = new QHttpSocket(pair.server(), &pair);
QHttpSocket socket(pair.server(), &pair);
handler.process(socket, path);
handler.process(&socket, path);
QTRY_COMPARE(client.statusCode(), statusCode);
}