From a3d432d16db91fbe65320023f89cc858918184ec Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 19 May 2008 19:58:06 +0000 Subject: [PATCH] fix deadlock svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=809963 --- runnercontext.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runnercontext.cpp b/runnercontext.cpp index 24fdcdf1d..8ae27bead 100644 --- a/runnercontext.cpp +++ b/runnercontext.cpp @@ -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