Fix minor memory leak in Wallpaper interface
REVIEW: 119316
This commit is contained in:
parent
06827054f4
commit
9b0d414e57
@ -100,10 +100,10 @@ KConfigLoader *WallpaperInterface::configScheme()
|
||||
cfg = KConfigGroup(&cfg, "Wallpaper");
|
||||
|
||||
if (xmlPath.isEmpty()) {
|
||||
m_configLoader = new KConfigLoader(cfg, 0);
|
||||
m_configLoader = new KConfigLoader(cfg, 0, this);
|
||||
} else {
|
||||
QFile file(xmlPath);
|
||||
m_configLoader = new KConfigLoader(cfg, &file);
|
||||
m_configLoader = new KConfigLoader(cfg, &file, this);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user