Fix some of the things clang --analyze flagged
This commit is contained in:
1 parent
352cd151e0
commit
98360bcd57
34 files changed
+58
-112
No files matched your search
@@ -2123,8 +2123,6 @@ static void R_CreateWorldVBO(void)
|
||||
}
|
||||
|
||||
|
||||
startTime = ri.Milliseconds();
|
||||
|
||||
ri.Free(surfacesSorted);
|
||||
|
||||
ri.Hunk_FreeTempMemory(triangles);
|
||||
@@ -2151,7 +2149,6 @@ static void R_LoadSurfaces( lump_t *surfs, lump_t *verts, lump_t *indexLump ) {
|
||||
numTriSurfs = 0;
|
||||
numFlares = 0;
|
||||
|
||||
in = (void *)(fileBase + surfs->fileofs);
|
||||
if (surfs->filelen % sizeof(*in))
|
||||
ri.Error (ERR_DROP, "LoadMap: funny lump size in %s",s_worldData.name);
|
||||
count = surfs->filelen / sizeof(*in);
|
||||
|
||||
Reference in new issue
Block a user