diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-09-22 12:34:25 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-09-22 12:37:20 (GMT) |
commit | 787d5dc3ccd913b125979ee83d5249dcf78fb8ea (patch) | |
tree | 1a7aacd89d654072f8543b5cc5726ebb03dc7057 /src/network/access | |
parent | 0c0d9593c6e3d5cc0005a3f545002dd169e93329 (diff) | |
download | Qt-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/access')
-rw-r--r-- | src/network/access/qnetworkreplyimpl.cpp | 2 |
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() |