Pointers should be set to NULL

This commit is contained in:
Learath2 2017-04-12 01:20:39 +02:00 committed by GitHub
parent 389b432758
commit 568b5e5603

View file

@ -313,7 +313,7 @@ CClient::CClient() : m_DemoPlayer(&m_SnapshotDelta)
// map download
m_aMapdownloadFilename[0] = 0;
m_aMapdownloadName[0] = 0;
m_pMapdownloadTask = 0;
m_pMapdownloadTask = NULL;
m_MapdownloadFile = 0;
m_MapdownloadChunk = 0;
m_MapdownloadCrc = 0;
@ -2174,7 +2174,7 @@ void CClient::ResetMapDownload()
{
m_pMapdownloadTask->Abort();
delete m_pMapdownloadTask;
m_pMapdownloadTask = 0;
m_pMapdownloadTask = NULL;
}
m_MapdownloadFile = 0;
m_MapdownloadAmount = 0;
@ -2514,7 +2514,7 @@ void CClient::Update()
else if(m_pMapdownloadTask->State() == CFetchTask::STATE_ABORTED)
{
delete m_pMapdownloadTask;
m_pMapdownloadTask = 0;
m_pMapdownloadTask = NULL;
}
}