summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/icons/iconmanager.cpp2
-rw-r--r--src/icons/webicon.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/icons/iconmanager.cpp b/src/icons/iconmanager.cpp
index 2948fde3..cc09e252 100644
--- a/src/icons/iconmanager.cpp
+++ b/src/icons/iconmanager.cpp
@@ -210,7 +210,7 @@ QString IconManager::iconPathForUrl(const KUrl &url)
void IconManager::provideEngineFavicon(const KUrl &url)
{
// will autodelete itself when done
- new WebIcon(url, this);
+ new WebIcon(url);
}
diff --git a/src/icons/webicon.cpp b/src/icons/webicon.cpp
index 3bcf18f3..1d61027b 100644
--- a/src/icons/webicon.cpp
+++ b/src/icons/webicon.cpp
@@ -119,4 +119,6 @@ void WebIcon::saveIcon(bool b)
// will autodelete itself when done
new IconDownloader(faviconUrl, destUrl, this);
+
+ this->deleteLater();
}