summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-04-20 00:58:19 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-04-20 00:58:19 +0200
commit2fc4da5614113a8a184f6bdd05185cc875d9ce27 (patch)
treef0682c6375f698130e79b3f3363443b338876ebb /src/webpage.cpp
parentFix default engine implementation and fix a bit code (diff)
downloadrekonq-2fc4da5614113a8a184f6bdd05185cc875d9ce27.tar.xz
deleting replies as explained in QNetworkAccessManager docs
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp12
1 files changed, 9 insertions, 3 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();
}