fix deadlock

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809963
This commit is contained in:
Aaron J. Seigo 2008-05-19 19:58:06 +00:00
parent 812d870086
commit a3d432d16d

View File

@ -241,12 +241,13 @@ QueryMatch RunnerContext::match(const QString &id) const
{
LOCK_FOR_READ(this)
if (d->matchesById.contains(id)) {
return *d->matchesById.value(id);
const QueryMatch *match = d->matchesById.value(id);
UNLOCK(this)
return *match;
}
UNLOCK(this)
return QueryMatch(0);
}
} // Plasma namespace