summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webpage.cpp12
-rw-r--r--src/webview.cpp3
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();
}