diff --git a/kcmkwin/kwindecoration/kwindecoration.cpp b/kcmkwin/kwindecoration/kwindecoration.cpp index 3fbc76f764..d557a6ef5c 100644 --- a/kcmkwin/kwindecoration/kwindecoration.cpp +++ b/kcmkwin/kwindecoration/kwindecoration.cpp @@ -273,8 +273,7 @@ void KWinDecorationModule::resetPlugin( KConfig* conf, const QString& currentDec currentName += "_config"; // Delete old plugin widget if it exists - if (pluginObject) - delete pluginObject; + delete pluginObject; // Use klibloader for library manipulation KLibLoader* loader = KLibLoader::self();