fix unlock mismatch due to detach happening

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=803147
This commit is contained in:
Aaron J. Seigo 2008-05-02 05:31:24 +00:00
parent 4b05a1b05f
commit 916938efae

View File

@ -160,9 +160,9 @@ void RunnerContext::reset()
// We will detach if we are a copy of someone. But we will reset
// if we are the 'main' context others copied from. Resetting
// one RunnerContext makes all the copies oneobsolete.
LOCK_FOR_WRITE(this)
d.detach();
LOCK_FOR_WRITE(this)
//kDebug() << "reset searchContext";
d->type = RunnerContext::UnknownType;
d->term.clear();