From 9b0d414e57971235bd5d7b059aad4ba5b3a324f9 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 16 Jul 2014 13:54:39 +0200 Subject: [PATCH] Fix minor memory leak in Wallpaper interface REVIEW: 119316 --- src/scriptengines/qml/plasmoid/wallpaperinterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scriptengines/qml/plasmoid/wallpaperinterface.cpp b/src/scriptengines/qml/plasmoid/wallpaperinterface.cpp index f1da57143..844df0cdb 100644 --- a/src/scriptengines/qml/plasmoid/wallpaperinterface.cpp +++ b/src/scriptengines/qml/plasmoid/wallpaperinterface.cpp @@ -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); } }