mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02: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:
parent
a779a018e1
commit
90078e4038
@ -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"));
|
||||||
|
Loading…
Reference in New Issue
Block a user