delete the config file first before the temp file so that it doesn't write itself out after the tempfile has been removed, avoiding spawning endless temp files.

svn path=/trunk/KDE/kdelibs/; revision=912076
This commit is contained in:
Aaron J. Seigo 2009-01-16 17:16:10 +00:00
parent 512bcd03a9
commit f5c70115db

View File

@ -29,6 +29,8 @@
#include <ktemporaryfile.h>
#include "plasma/configloader.h"
namespace Plasma
{
@ -74,8 +76,10 @@ public:
tempFile(0)
{
}
~ServicePrivate()
{
delete config;
delete tempFile;
}