fix coverity issues

This commit is contained in:
KroArtem
2014-02-09 17:04:15 +04:00
parent 452af6f423
commit 33ea1a6ef5
2 changed files with 4 additions and 0 deletions

View File

@@ -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))
{

View File

@@ -40,6 +40,7 @@ GameSetup::~GameSetup()
delete m_players[i];
};
m_players.clear();
delete m_race_config;
}
//-----------------------------------------------------------------------------