1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 04:36:34 +01:00

Do not use "createSettings" in database updater

There is a potential memory leak.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-12-14 12:47:08 +01:00
parent a779a018e1
commit 90078e4038
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -403,11 +403,7 @@ void ProfileManager::updateDatabase()
}; };
QHash<QString, SiteSettingsManager::SiteSettings> siteSettings; QHash<QString, SiteSettingsManager::SiteSettings> siteSettings;
/* Copied from mainapplication.cpp */ QSettings settings(DataPaths::currentProfilePath() + QLatin1String("/settings.ini"), QSettings::IniFormat);
Settings::createSettings(DataPaths::currentProfilePath() + QLatin1String("/settings.ini"));
/* End of copied code */
Settings settings;
/* HTML5 permissions */ /* HTML5 permissions */
settings.beginGroup(QSL("HTML5Notifications")); settings.beginGroup(QSL("HTML5Notifications"));