summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-08-06 13:16:00 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-08-06 13:21:05 (GMT)
commitaf5cb732ac6caf370f98dd41129a723a81d55e9b (patch)
tree1ff694d3d37b0ffcce5cd87828b567f504fa4331 /src
parent986ac2b13eb60e10496ecf63dca1ed0de0990da9 (diff)
downloadQt-af5cb732ac6caf370f98dd41129a723a81d55e9b.zip
Qt-af5cb732ac6caf370f98dd41129a723a81d55e9b.tar.gz
Qt-af5cb732ac6caf370f98dd41129a723a81d55e9b.tar.bz2
Fix QObjectRace test
We should not unlock too early, or node might get deleted.
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp
index e37b6d3..6520170 100644
--- a/src/corelib/kernel/qobject.cpp
+++ b/src/corelib/kernel/qobject.cpp
@@ -843,9 +843,9 @@ QObject::~QObject()
if (senderLists)
senderLists->dirty = true;
+ node = node->next;
if (needToUnlock)
m->unlock();
- node = node->next;
}
}