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:
parent
a779a018e1
commit
90078e4038
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user