- Fix more errors found with static code analysis.

SVN r3288 (trunk)
This commit is contained in:
Randy Heit 2011-09-01 22:57:49 +00:00
commit 7714ee3ffd
5 changed files with 320 additions and 317 deletions

View file

@ -1234,7 +1234,7 @@ static bool CheckCachedNodes(MapData *map)
BYTE md5[16];
BYTE md5map[16];
DWORD numlin;
DWORD *verts;
DWORD *verts = NULL;
FString path = CreateCacheName(map, false);
FILE *f = fopen(path, "rb");
@ -1298,6 +1298,10 @@ static bool CheckCachedNodes(MapData *map)
return true;
errorout:
if (verts != NULL)
{
delete[] verts;
}
fclose(f);
return false;
}