diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-05-04 17:30:40 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-05-04 17:30:40 +0200 |
commit | de68f1570747203bc7ff9bfb1c17ee1580928e5d (patch) | |
tree | f3f8e00242d81d0e90f30ae870a2cf4dee2eee86 /src/webpage.cpp | |
parent | rekonq 0.4.67 (diff) | |
download | rekonq-de68f1570747203bc7ff9bfb1c17ee1580928e5d.tar.xz |
reply deleteLater..
This time seems good.
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp index b510311e..99a1a6d2 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -236,7 +236,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) // NOTE // This is probably needed just in ONE stupid case.. if (_protHandler.postHandling(reply->request(), mainFrame())) - return; + return reply->deleteLater(); if (reply->error() == QNetworkReply::NoError) { @@ -255,7 +255,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) ? KMessageBox::sorry(view(), i18n("No service can handle this :(")) : downloadRequest(reply->request()); - return; + return reply->deleteLater(); } if (!isLocal) @@ -267,10 +267,10 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) case KParts::BrowserOpenOrSaveQuestion::Save: kDebug() << "service handling: download!"; downloadRequest(reply->request()); - return; + return reply->deleteLater(); case KParts::BrowserOpenOrSaveQuestion::Cancel: - return; + return reply->deleteLater(); default: // non extant case break; @@ -306,7 +306,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) KRun::run(*appService, url, 0); } - return; + return; // FIXME: crash reply->deleteLater(); } } @@ -386,6 +386,7 @@ void WebPage::manageNetworkErrors(QNetworkReply *reply) break; } + reply->deleteLater(); } |