mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
refs #476 The readers should delete their QNetworkAccessManager in cleanup(), just before they move back to the main thread for later deletion.
This commit is contained in:
@@ -66,6 +66,15 @@ namespace BlackCore
|
||||
QTimer::singleShot(500, this, &CSetupReader::ps_readSetup);
|
||||
}
|
||||
|
||||
void CSetupReader::cleanup()
|
||||
{
|
||||
delete this->m_networkManagerBootstrap;
|
||||
this->m_networkManagerBootstrap = nullptr;
|
||||
|
||||
delete this->m_networkManagerUpdateInfo;
|
||||
this->m_networkManagerUpdateInfo = nullptr;
|
||||
}
|
||||
|
||||
void CSetupReader::ps_readSetup()
|
||||
{
|
||||
this->threadAssertCheck();
|
||||
|
||||
Reference in New Issue
Block a user