diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2010-04-21 10:17:44 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2010-04-21 10:18:12 (GMT) |
commit | e4b94afe25c8026d61a726c778088c3cc627ef13 (patch) | |
tree | 4d07adf985944f76d6f0d80d0ee3d89cb63db2a1 /src/network/access/qnetworkreplyimpl.cpp | |
parent | bee994a655104e3ac9674c8ac25043f79e01c1e7 (diff) | |
download | Qt-e4b94afe25c8026d61a726c778088c3cc627ef13.zip Qt-e4b94afe25c8026d61a726c778088c3cc627ef13.tar.gz Qt-e4b94afe25c8026d61a726c778088c3cc627ef13.tar.bz2 |
QNAM: Add a code comment related to the cache
Diffstat (limited to 'src/network/access/qnetworkreplyimpl.cpp')
-rw-r--r-- | src/network/access/qnetworkreplyimpl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp index 59c7d76..320b1ac 100644 --- a/src/network/access/qnetworkreplyimpl.cpp +++ b/src/network/access/qnetworkreplyimpl.cpp @@ -580,8 +580,13 @@ QNetworkReplyImpl::QNetworkReplyImpl(QObject *parent) QNetworkReplyImpl::~QNetworkReplyImpl() { Q_D(QNetworkReplyImpl); + + // This code removes the data from the cache if it was prematurely aborted. + // See QNetworkReplyImplPrivate::completeCacheSave(), we disable caching there after the cache + // save had been properly finished. So if it is still enabled it means we got deleted/aborted. if (d->isCachingEnabled()) d->networkCache()->remove(url()); + if (d->outgoingDataBuffer) delete d->outgoingDataBuffer; } |