summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/embedded/qlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/embedded/qlock.cpp b/src/gui/embedded/qlock.cpp
index e7db7e6..8f24e7d 100644
--- a/src/gui/embedded/qlock.cpp
+++ b/src/gui/embedded/qlock.cpp
@@ -194,7 +194,7 @@ QLock::QLock(const QString &filename, char id, bool create)
QLock::~QLock()
{
- if (locked())
+ while (locked())
unlock();
#ifdef Q_NO_SEMAPHORE
if(isValid()) {