summaryrefslogtreecommitdiff
path: root/xserver/mi/mifillrct.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-12-05 15:36:12 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-12-05 15:36:12 +0000
commita90ee792d96752ad1b71b9ada922fa6afe478c99 (patch)
tree6143b00f7646951d23dfe2a4fe2992ca40b77069 /xserver/mi/mifillrct.c
parentbc97d4ecc0aa9e1b823565b07282f848700bd11a (diff)
Upgrade to xorg-server 1.9.2.
Tested by ajacoutot@, krw@, shadchin@ and jasper@ on various configurations including multihead with both zaphod and xrandr.
Diffstat (limited to 'xserver/mi/mifillrct.c')
-rw-r--r--xserver/mi/mifillrct.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xserver/mi/mifillrct.c b/xserver/mi/mifillrct.c
index 6e9979099..1c63a35fa 100644
--- a/xserver/mi/mifillrct.c
+++ b/xserver/mi/mifillrct.c
@@ -107,12 +107,12 @@ miPolyFillRect(
maxheight = max(maxheight, prect->height);
}
- pptFirst = xalloc(maxheight * sizeof(DDXPointRec));
- pwFirst = xalloc(maxheight * sizeof(int));
+ pptFirst = malloc(maxheight * sizeof(DDXPointRec));
+ pwFirst = malloc(maxheight * sizeof(int));
if(!pptFirst || !pwFirst)
{
- if (pwFirst) xfree(pwFirst);
- if (pptFirst) xfree(pptFirst);
+ free(pwFirst);
+ free(pptFirst);
return;
}
@@ -138,6 +138,6 @@ miPolyFillRect(
1);
prect++;
}
- xfree(pwFirst);
- xfree(pptFirst);
+ free(pwFirst);
+ free(pptFirst);
}