fix some things cppcheck found...some are TODO because i don't feel like investigating them

This commit is contained in:
DarthArgus
2015-03-25 19:07:38 -05:00
parent 2c8ee9dc3e
commit 173575e835
15 changed files with 68 additions and 18 deletions
@@ -278,9 +278,9 @@ void FileManifest::addNewManifestEntry(const char *fileName, int fileSize)
if (fileSize)
((insertReturn.first)->second)->size = fileSize;
// delete the new entry we created
delete entry;
}
delete entry;
#else
return;
#endif
@@ -299,9 +299,7 @@ void FileManifest::addStoredManifestEntry(const char *fileName, const char * sce
std::pair<ManifestMap::iterator, bool> insertReturn = s_manifest.insert(std::pair<const uint32, FileManifestEntry*>(crc, entry));
// if the insert failed, delete the entry we created
if (!insertReturn.second)
delete entry;
delete entry;
}
// -----------------------------------------------------------------------