- Make use of qDeleteAll() function from Qt4

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

View file

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