1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-19 18:26: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;
/* Copied from mainapplication.cpp */
Settings::createSettings(DataPaths::currentProfilePath() + QLatin1String("/settings.ini"));
/* End of copied code */
Settings settings;
QSettings settings(DataPaths::currentProfilePath() + QLatin1String("/settings.ini"), QSettings::IniFormat);
/* HTML5 permissions */
settings.beginGroup(QSL("HTML5Notifications"));