diff options
-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 ); } } |