Browse Source

- Improve the previous fix to search engine deletion

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
6c796ff302
  1. 5
      src/searchEngine.cpp

5
src/searchEngine.cpp

@ -106,9 +106,12 @@ SearchEngine::~SearchEngine(){ @@ -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…
Cancel
Save