C++ (Qt)delete network_manager;
void deleteTmpNetwar::startDownload(){ if (network_manager) { file = new QFile(); file->setFileName(fileName); file->open(QIODevice::WriteOnly); m_reply = network_manager->get(QNetworkRequest(url)); connect(m_reply, SIGNAL(downloadProgress(qint64,qint64)), this, SLOT(download_progress(qint64, qint64))); connect(m_reply, SIGNAL(readyRead()), this, SLOT(ready_read())); connect(m_reply, SIGNAL(finished()), this, SLOT(finish_download())); }}