Remove some unneeded NULL checks.

Found by http://coccinelle.lip6.fr/rules/notnull.cocci

git-svn-id: https://svn.eduke32.com/eduke32@2978 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-09-02 13:57:39 +00:00
parent 26c540e736
commit 8efcc81096
2 changed files with 4 additions and 6 deletions

View File

@ -1245,7 +1245,7 @@ static int32_t gloadtile_art(int32_t dapic, int32_t dapal, int32_t dameth, pthty
bglTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,glinfo.clamptoedge?GL_CLAMP_TO_EDGE:GL_CLAMP);
}
if (pic) Bfree(pic);
Bfree(pic);
pth->picnum = dapic;
pth->palnum = dapal;

View File

@ -215,16 +215,14 @@ int32_t ScanGroups(void)
fclose(fp);
}
// initprintf("Found %d recognized GRP %s.\n",i,i>1?"files":"file");
if (buf)
Bfree(buf);
Bfree(buf);
return 0;
}
initprintf("Found no recognized game data!\n");
if (buf)
Bfree(buf);
Bfree(buf);
return 0;
}