mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
- Improve the previous fix to search engine deletion
This commit is contained in:
parent
4ca2d060ea
commit
6c796ff302
1 changed files with 4 additions and 1 deletions
|
@ -106,9 +106,12 @@ SearchEngine::~SearchEngine(){
|
|||
searchProcess->kill();
|
||||
searchProcess->waitForFinished();
|
||||
foreach(QProcess *downloader, downloaders) {
|
||||
// Make sure we disconnect the SIGNAL/SLOT first
|
||||
// To avoid double free
|
||||
downloader->disconnect();
|
||||
downloader->kill();
|
||||
downloader->waitForFinished();
|
||||
//delete downloader;
|
||||
delete downloader;
|
||||
}
|
||||
delete searchTimeout;
|
||||
delete searchProcess;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue