fix coverity issues
This commit is contained in:
@@ -181,6 +181,9 @@ void* NewsManager::downloadNews(void *obj)
|
||||
xml = NULL;
|
||||
} // hadDownloadError
|
||||
|
||||
if(xml) delete xml;
|
||||
xml = NULL;
|
||||
|
||||
// Process new.xml now.
|
||||
if(file_manager->fileExists(xml_file))
|
||||
{
|
||||
|
||||
@@ -40,6 +40,7 @@ GameSetup::~GameSetup()
|
||||
delete m_players[i];
|
||||
};
|
||||
m_players.clear();
|
||||
delete m_race_config;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user