connect(reply,SIGNAL(destroyed()),this,SLOT(replyDestroyed()));
replyWasDeleted = true;
reply = manager->get(QNetworkRequest(QUrl(sDomain,QUrl::TolerantMode)));
void VBCheckURLThread::runChecking(){ mtx.unlock(); <<<<<<<<<<<<<<<<<<<<<=========== Что за ??? :) if(!sManagerWasCreated) { manager = new QNetworkAccessManager(); // тут утечки памяти sManagerWasCreated = true; } connect(manager, SIGNAL(finished(QNetworkReply*)),this, SLOT(checkSiteFinished(QNetworkReply*))); // тут утечки памяти connect(manager, SIGNAL(authenticationRequired(QNetworkReply*,QAuthenticator*)),this, SLOT(checkAuthenticationRequired(QNetworkReply*,QAuthenticator*))); replyWasDeleted = false; reply = manager->get(QNetworkRequest(QUrl(sDomain,QUrl::TolerantMode))); //// qDebug()<<"4"; // тут утечки памяти connect(reply,SIGNAL(destroyed()),this,SLOT(replyDestroyed())); emit startTimer(30000);}
void VBCheckURLThread::runChecking(){ //mtx.unlock(); /////////////////////////////////////// - ЗАКОМЕНТИРОВАЛ if(!sManagerWasCreated) { ...}void VBCheckURLThread::checkWork(){ ... offNode(); mtx.unlock(); ////////////////////////////////////// ДОБАВИЛ ++++++++}void VBCheckURLThread::checkSiteFinished(QNetworkReply* localReply){ ... offNode(); mtx.unlock(); ////////////////////////////////////// ДОБАВИЛ перед RETURN ++++++++ return; ... offNode(); mtx.unlock(); ////////////////////////////////////// ДОБАВИЛ ++++++++}