equal
deleted
inserted
replaced
578 } |
578 } |
579 |
579 |
580 QNetworkReplyImpl::~QNetworkReplyImpl() |
580 QNetworkReplyImpl::~QNetworkReplyImpl() |
581 { |
581 { |
582 Q_D(QNetworkReplyImpl); |
582 Q_D(QNetworkReplyImpl); |
|
583 |
|
584 // This code removes the data from the cache if it was prematurely aborted. |
|
585 // See QNetworkReplyImplPrivate::completeCacheSave(), we disable caching there after the cache |
|
586 // save had been properly finished. So if it is still enabled it means we got deleted/aborted. |
583 if (d->isCachingEnabled()) |
587 if (d->isCachingEnabled()) |
584 d->networkCache()->remove(url()); |
588 d->networkCache()->remove(url()); |
|
589 |
585 if (d->outgoingDataBuffer) |
590 if (d->outgoingDataBuffer) |
586 delete d->outgoingDataBuffer; |
591 delete d->outgoingDataBuffer; |
587 } |
592 } |
588 |
593 |
589 void QNetworkReplyImpl::abort() |
594 void QNetworkReplyImpl::abort() |