Corrected one other instance of checking for NULL when it should

have checked for CLIENTDEFAULT.
This commit is contained in:
Tim Edwards 2019-08-20 15:05:30 -04:00
parent c360fb9d5a
commit d5b695fea0
1 changed files with 2 additions and 1 deletions

View File

@ -415,7 +415,8 @@ calmaParseStructure(filename)
for (pNum = 0; pNum < MAXCIFRLAYERS; pNum++)
{
if (cifplanes[pNum] != NULL)
if ((cifReadCellDef->cd_client != (ClientData)CLIENTDEFAULT) &&
(cifplanes[pNum] != NULL))
{
DBFreePaintPlane(cifplanes[pNum]);
TiFreePlane(cifplanes[pNum]);