always delete the config group on destruction, even if it hasn't been access yet

svn path=/trunk/KDE/kdelibs/; revision=891073
This commit is contained in:
Aaron J. Seigo 2008-12-01 06:27:07 +00:00
parent 629a3b3789
commit 40041fe655

View File

@ -2014,11 +2014,12 @@ void AppletPrivate::themeChanged()
void AppletPrivate::resetConfigurationObject() void AppletPrivate::resetConfigurationObject()
{ {
if (mainConfig) { // make sure mainConfigGroup exists in all cases
mainConfigGroup();
mainConfig->deleteGroup(); mainConfig->deleteGroup();
delete mainConfig; delete mainConfig;
mainConfig = 0; mainConfig = 0;
}
} }
uint AppletPrivate::s_maxAppletId = 0; uint AppletPrivate::s_maxAppletId = 0;