summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2009-09-22 14:34:25 +0200
committerMarkus Goetz <Markus.Goetz@nokia.com>2009-09-22 14:37:20 +0200
commit787d5dc3ccd913b125979ee83d5249dcf78fb8ea (patch)
tree1a7aacd89d654072f8543b5cc5726ebb03dc7057 /src/network
parent0c0d9593c6e3d5cc0005a3f545002dd169e93329 (diff)
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 83afdddae6..c20812e42e 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()