diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-09-22 12:50:48 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-09-22 12:50:48 (GMT) |
commit | 394fddbe1ed93f8aafc29ace8217ad8d77e7276f (patch) | |
tree | cb7d6905525b34d1a80b15e7b859c667deb2a476 /tests/auto | |
parent | 787d5dc3ccd913b125979ee83d5249dcf78fb8ea (diff) | |
download | Qt-394fddbe1ed93f8aafc29ace8217ad8d77e7276f.zip Qt-394fddbe1ed93f8aafc29ace8217ad8d77e7276f.tar.gz Qt-394fddbe1ed93f8aafc29ace8217ad8d77e7276f.tar.bz2 |
Fix memleak in tst_qhttpnetworkconnection
Reviewed-by: TrustMe
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp b/tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp index e1e25d2..470e57f 100644 --- a/tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp +++ b/tests/auto/qhttpnetworkconnection/tst_qhttpnetworkconnection.cpp @@ -320,6 +320,7 @@ void tst_QHttpNetworkConnection::put() QByteArray array = data.toLatin1(); QNonContiguousByteDevice *bd = QNonContiguousByteDeviceFactory::create(&array); + bd->setParent(this); request.setUploadByteDevice(bd); finishedCalled = false; @@ -411,6 +412,7 @@ void tst_QHttpNetworkConnection::post() QByteArray array = data.toLatin1(); QNonContiguousByteDevice *bd = QNonContiguousByteDeviceFactory::create(&array); + bd->setParent(this); request.setUploadByteDevice(bd); QHttpNetworkReply *reply = connection.sendRequest(request); |