refuse to destroy an applet before it's started; apparently there are some rather inventive people out there

svn path=/trunk/KDE/kdelibs/; revision=984116
This commit is contained in:
Aaron J. Seigo 2009-06-20 02:14:43 +00:00
parent 6c0bea46a2
commit 27e83c08d8

View File

@ -415,7 +415,7 @@ KConfigGroup Applet::globalConfig() const
void Applet::destroy()
{
if (immutability() != Mutable || d->transient) {
if (immutability() != Mutable || d->transient || !d->started) {
return; //don't double delete
}