From d5b695fea07b2417899dc58fa82d9eb8e77f5eb1 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Tue, 20 Aug 2019 15:05:30 -0400 Subject: [PATCH] Corrected one other instance of checking for NULL when it should have checked for CLIENTDEFAULT. --- calma/CalmaRdcl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calma/CalmaRdcl.c b/calma/CalmaRdcl.c index a42c624a..78de9986 100644 --- a/calma/CalmaRdcl.c +++ b/calma/CalmaRdcl.c @@ -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]);