summaryrefslogtreecommitdiff
path: root/mi/micopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'mi/micopy.c')
-rw-r--r--mi/micopy.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/mi/micopy.c b/mi/micopy.c
index b1a7a0850..027c461fe 100644
--- a/mi/micopy.c
+++ b/mi/micopy.c
@@ -108,8 +108,7 @@ miCopyRegion (DrawablePtr pSrcDrawable,
pboxNew2 = (BoxPtr)malloc(sizeof(BoxRec) * nbox);
if(!pboxNew2)
{
- if (pboxNew1)
- free(pboxNew1);
+ free(pboxNew1);
return;
}
pboxBase = pboxNext = pbox;
@@ -143,10 +142,8 @@ miCopyRegion (DrawablePtr pSrcDrawable,
dx, dy,
reverse, upsidedown, bitPlane, closure);
- if (pboxNew1)
- free(pboxNew1);
- if (pboxNew2)
- free(pboxNew2);
+ free(pboxNew1);
+ free(pboxNew2);
}
RegionPtr