1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00

- Improve the previous fix to search engine deletion

This commit is contained in:
Christophe Dumez 2009-11-18 10:34:57 +00:00
parent 4ca2d060ea
commit 6c796ff302

View File

@ -106,9 +106,12 @@ SearchEngine::~SearchEngine(){
searchProcess->kill(); searchProcess->kill();
searchProcess->waitForFinished(); searchProcess->waitForFinished();
foreach(QProcess *downloader, downloaders) { foreach(QProcess *downloader, downloaders) {
// Make sure we disconnect the SIGNAL/SLOT first
// To avoid double free
downloader->disconnect();
downloader->kill(); downloader->kill();
downloader->waitForFinished(); downloader->waitForFinished();
//delete downloader; delete downloader;
} }
delete searchTimeout; delete searchTimeout;
delete searchProcess; delete searchProcess;