mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
- Make use of qDeleteAll() function from Qt4
This commit is contained in:
parent
04352cce3c
commit
de8c3158fe
3 changed files with 6 additions and 20 deletions
|
@ -154,10 +154,7 @@ class downloadThread : public QThread {
|
|||
abort = true;
|
||||
condition.wakeOne();
|
||||
mutex.unlock();
|
||||
subDownloadThread *st;
|
||||
foreach(st, subThreads){
|
||||
delete st;
|
||||
}
|
||||
qDeleteAll(subThreads);
|
||||
wait();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue