- Make use of qDeleteAll() function from Qt4

This commit is contained in:
Christophe Dumez
2007-08-19 13:00:51 +00:00
parent 04352cce3c
commit de8c3158fe
3 changed files with 6 additions and 20 deletions

View File

@@ -84,10 +84,7 @@ class deleteThread : public QThread {
abort = true;
condition.wakeOne();
mutex.unlock();
subDeleteThread *st;
foreach(st, subThreads){
delete st;
}
qDeleteAll(subThreads);
wait();
}