Fixed a couple bugs caught by clang's static analyzer

This commit is contained in:
Alex Szpakowski
2013-09-18 18:30:12 -03:00
parent 69dc24d7ce
commit 74f26160da
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ int w_Thread_start(lua_State *L)
{
for (int j = i; j >= 0; j--)
delete args[j];
delete args;
delete[] args;
return luaL_argerror(L, i+2, "boolean, number, string, love type, or flat table expected");
}
}