summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-09-22 12:34:25 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-09-22 12:37:20 (GMT)
commit787d5dc3ccd913b125979ee83d5249dcf78fb8ea (patch)
tree1a7aacd89d654072f8543b5cc5726ebb03dc7057 /src/network
parent0c0d9593c6e3d5cc0005a3f545002dd169e93329 (diff)
downloadQt-787d5dc3ccd913b125979ee83d5249dcf78fb8ea.zip
Qt-787d5dc3ccd913b125979ee83d5249dcf78fb8ea.tar.gz
Qt-787d5dc3ccd913b125979ee83d5249dcf78fb8ea.tar.bz2
QNetworkReplyImpl: Delete the outgoingDataBuffer in destructor
Fixes a memleak Reviewed-by: Peter Hartmann
Diffstat (limited to 'src/network')
-rw-r--r--src/network/access/qnetworkreplyimpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp
index 83afddd..c20812e 100644
--- a/src/network/access/qnetworkreplyimpl.cpp
+++ b/src/network/access/qnetworkreplyimpl.cpp
@@ -573,6 +573,8 @@ QNetworkReplyImpl::~QNetworkReplyImpl()
Q_D(QNetworkReplyImpl);
if (d->isCachingEnabled())
d->networkCache()->remove(url());
+ if (d->outgoingDataBuffer)
+ delete d->outgoingDataBuffer;
}
void QNetworkReplyImpl::abort()