diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-20 00:58:19 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-20 00:58:19 +0200 |
commit | 2fc4da5614113a8a184f6bdd05185cc875d9ce27 (patch) | |
tree | f0682c6375f698130e79b3f3363443b338876ebb | |
parent | Fix default engine implementation and fix a bit code (diff) | |
download | rekonq-2fc4da5614113a8a184f6bdd05185cc875d9ce27.tar.xz |
deleting replies as explained in QNetworkAccessManager docs
-rw-r--r-- | src/webpage.cpp | 12 | ||||
-rw-r--r-- | src/webview.cpp | 3 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp index 65dda0a0..6cc9d531 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -251,7 +251,8 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) isLocal ? KMessageBox::sorry(view(), i18n("No service can handle this :(") ) : downloadRequest( reply->request() ); - return; + + return reply->deleteLater(); } if(!isLocal) @@ -263,9 +264,11 @@ 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; } @@ -287,6 +290,7 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) html += "</html>"; mainFrame()->setHtml(html, url); + return reply->deleteLater(); } } @@ -370,6 +374,8 @@ void WebPage::manageNetworkErrors(QNetworkReply *reply) break; } + + reply->deleteLater(); } diff --git a/src/webview.cpp b/src/webview.cpp index 6f6ec128..f48afffb 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -94,7 +94,8 @@ WebView::WebView(QWidget* parent) WebView::~WebView() { - disconnect(); + delete _scrollTimer; + disconnect(); } |