diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2024-03-13 23:01:57 +0300 |
---|---|---|
committer | Alexander Golubev <fatzer2@gmail.com> | 2024-03-13 23:01:57 +0300 |
commit | 74f7b9309e194faee2de1ce354bf5c717b01f5c9 (patch) | |
tree | 7dadcba2709c55ec48375f667bb3df7c185fc54f | |
parent | 14e882386b4fd47c22304156f0bfc2a0c599b617 (diff) | |
download | tqt3-74f7b9309e194faee2de1ce354bf5c717b01f5c9.tar.gz tqt3-74f7b9309e194faee2de1ce354bf5c717b01f5c9.zip |
Add a lock to removing ourself from another's object's sender list
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
-rw-r--r-- | src/kernel/qobject.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/qobject.cpp b/src/kernel/qobject.cpp index b8f1a6ee8..1e6d55836 100644 --- a/src/kernel/qobject.cpp +++ b/src/kernel/qobject.cpp @@ -777,6 +777,9 @@ TQObject::~TQObject() while( (c=cit.current()) ) { // for each connected slot... ++cit; if ( (obj=c->object()) ) { +#ifdef TQT_THREAD_SUPPORT + TQMutexLocker locker( obj->senderObjects->listMutex ); +#endif removeObjFromList( obj->senderObjects, this ); } } |