Revert "recommit the innocuous fixes from cppcheck - the va_end calls were deleting pointers and breaking things further down the line"

This reverts commit bc33f176c2.
This commit is contained in:
DarthArgus
2015-04-02 22:40:20 -05:00
parent b80bd0c99b
commit def3a0350f
7 changed files with 13 additions and 11 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,7 +299,9 @@ 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));
delete entry;
// if the insert failed, delete the entry we created
if (!insertReturn.second)
delete entry;
}
// -----------------------------------------------------------------------