1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 19:29:09 +00:00

Fix some invalid heap ops found by Dr Memory

This commit is contained in:
2014-01-07 22:54:21 -05:00
parent a5758f91c6
commit 8cedb69e9e
4 changed files with 5 additions and 5 deletions

View File

@ -101,7 +101,7 @@ void plClientResMgr::ILoadResources(const char* resfile)
char* tmp_name = in.ReadSafeStringLong();
std::string res_name = std::string(tmp_name);
std::string res_type = res_name.substr(res_name.length() - 4, 4);
delete tmp_name;
delete[] tmp_name;
// Version 1 doesn't encode format, so we'll try some simple
// extension sniffing