Add a lock to removing ourself from another's object's sender list

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
fix/no-thread
Alexander Golubev 8 months ago
parent 14e882386b
commit 74f7b9309e

@ -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 );
}
}

Loading…
Cancel
Save