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:
parent
629a3b3789
commit
40041fe655
11
applet.cpp
11
applet.cpp
@ -2014,11 +2014,12 @@ void AppletPrivate::themeChanged()
|
|||||||
|
|
||||||
void AppletPrivate::resetConfigurationObject()
|
void AppletPrivate::resetConfigurationObject()
|
||||||
{
|
{
|
||||||
if (mainConfig) {
|
// make sure mainConfigGroup exists in all cases
|
||||||
mainConfig->deleteGroup();
|
mainConfigGroup();
|
||||||
delete mainConfig;
|
|
||||||
mainConfig = 0;
|
mainConfig->deleteGroup();
|
||||||
}
|
delete mainConfig;
|
||||||
|
mainConfig = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint AppletPrivate::s_maxAppletId = 0;
|
uint AppletPrivate::s_maxAppletId = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user