Fix minor memory leak in Wallpaper interface

REVIEW: 119316
This commit is contained in:
David Edmundson 2014-07-16 13:54:39 +02:00
parent 06827054f4
commit 9b0d414e57

View File

@ -100,10 +100,10 @@ KConfigLoader *WallpaperInterface::configScheme()
cfg = KConfigGroup(&cfg, "Wallpaper"); cfg = KConfigGroup(&cfg, "Wallpaper");
if (xmlPath.isEmpty()) { if (xmlPath.isEmpty()) {
m_configLoader = new KConfigLoader(cfg, 0); m_configLoader = new KConfigLoader(cfg, 0, this);
} else { } else {
QFile file(xmlPath); QFile file(xmlPath);
m_configLoader = new KConfigLoader(cfg, &file); m_configLoader = new KConfigLoader(cfg, &file, this);
} }
} }