From b8d5a19481ec28a26e6d8af5370b693a0b890202 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 9 Jul 2013 15:30:43 +0200 Subject: Get sure WebIcon is deleted when done --- src/icons/iconmanager.cpp | 2 +- src/icons/webicon.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.1