Fix leaks.

This commit is contained in:
Martin Rotter 2016-06-01 19:59:11 +02:00
parent e7dda27501
commit e4d893f230
2 changed files with 2 additions and 1 deletions

View File

@ -116,6 +116,7 @@ message(rssguard: Build revision: '$$APP_REVISION'.)
QT += core gui widgets sql network xml printsupport
CONFIG *= c++11 debug_and_release warn_on
DEFINES *= QT_USE_QSTRINGBUILDER QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
# Make needed tweaks for RC file getting generated on Windows.
win32 {

View File

@ -129,7 +129,7 @@ QString NetworkFactory::networkErrorText(QNetworkReply::NetworkError error_code)
}
QNetworkReply::NetworkError NetworkFactory::downloadIcon(const QList<QString> &urls, int timeout, QIcon &output) {
QNetworkReply::NetworkError network_result;
QNetworkReply::NetworkError network_result = QNetworkReply::UnknownNetworkError;
foreach (const QString &url, urls) {
const QString google_s2_with_url = QString("http://www.google.com/s2/favicons?domain=%1").arg(url.toHtmlEscaped());