SWORD25: Replaced some free's with delete[]

svn-id: r53325
This commit is contained in:
Paul Gilbert 2010-09-07 05:00:04 +00:00 committed by Eugene Sandulenko
parent b922b58f8d
commit 3fc518cd0c
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ public:
Common::copy(data, data + fileSize, result + strlen(versionStr));
result[fileSize + strlen(versionStr)] = '\0';
free(data);
delete[] data;
if (pFileSize) *pFileSize = fileSize + strlen(versionStr);
return result;
}

View File

@ -199,7 +199,7 @@ static int GetFileAsString(lua_State *L) {
char *FileData = (char *)pPM->GetFile(luaL_checkstring(L, 1), &FileSize);
if (FileData) {
lua_pushlstring(L, FileData, FileSize);
delete FileData;
delete[] FileData;
return 1;
} else