fix deadlock
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809963
This commit is contained in:
parent
812d870086
commit
a3d432d16d
@ -241,12 +241,13 @@ QueryMatch RunnerContext::match(const QString &id) const
|
|||||||
{
|
{
|
||||||
LOCK_FOR_READ(this)
|
LOCK_FOR_READ(this)
|
||||||
if (d->matchesById.contains(id)) {
|
if (d->matchesById.contains(id)) {
|
||||||
return *d->matchesById.value(id);
|
const QueryMatch *match = d->matchesById.value(id);
|
||||||
|
UNLOCK(this)
|
||||||
|
return *match;
|
||||||
}
|
}
|
||||||
UNLOCK(this)
|
UNLOCK(this)
|
||||||
|
|
||||||
return QueryMatch(0);
|
return QueryMatch(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Plasma namespace
|
} // Plasma namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user