summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-07-09 15:30:43 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-07-09 15:30:43 +0200
commitb8d5a19481ec28a26e6d8af5370b693a0b890202 (patch)
treef0a9496aa1d35fbd15a053dac60f59119eaa3ed7 /src
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-b8d5a19481ec28a26e6d8af5370b693a0b890202.tar.xz
Get sure WebIcon is deleted when done
Diffstat (limited to 'src')
-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();
}