mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
SWORD25: Replaced some free's with delete[]
svn-id: r53325
This commit is contained in:
parent
b922b58f8d
commit
3fc518cd0c
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user