diff options
author | Eric Anholt <eric@anholt.net> | 2010-06-04 16:04:37 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-06-06 15:56:35 -0700 |
commit | 2c1fda08e889cad07acb452230da06f9c383d21c (patch) | |
tree | 365ebf1e27b2a2ac784ab469d109d86e2edf6597 /uxa/uxa-accel.c | |
parent | b586624d4f2908d2a998ba87fe0ae31c10f46b91 (diff) |
Use libc instead of deprecated libc wrappers for malloc/calloc/free.
Diffstat (limited to 'uxa/uxa-accel.c')
-rw-r--r-- | uxa/uxa-accel.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/uxa/uxa-accel.c b/uxa/uxa-accel.c index 6b177cff..ed643c61 100644 --- a/uxa/uxa-accel.c +++ b/uxa/uxa-accel.c @@ -727,7 +727,7 @@ uxa_poly_point(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt, return; } - prect = xalloc(sizeof(xRectangle) * npt); + prect = malloc(sizeof(xRectangle) * npt); if (!prect) return; for (i = 0; i < npt; i++) { @@ -741,7 +741,7 @@ uxa_poly_point(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt, prect[i].height = 1; } pGC->ops->PolyFillRect(pDrawable, pGC, npt, prect); - xfree(prect); + free(prect); } /** @@ -764,7 +764,7 @@ uxa_poly_lines(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt, return; } - prect = xalloc(sizeof(xRectangle) * (npt - 1)); + prect = malloc(sizeof(xRectangle) * (npt - 1)); if (!prect) return; x1 = ppt[0].x; @@ -780,7 +780,7 @@ uxa_poly_lines(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt, } if (x1 != x2 && y1 != y2) { - xfree(prect); + free(prect); uxa_check_poly_lines(pDrawable, pGC, mode, npt, ppt); return; } @@ -804,7 +804,7 @@ uxa_poly_lines(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt, y1 = y2; } pGC->ops->PolyFillRect(pDrawable, pGC, npt - 1, prect); - xfree(prect); + free(prect); } /** @@ -833,7 +833,7 @@ uxa_poly_segment(DrawablePtr pDrawable, GCPtr pGC, int nseg, xSegment * pSeg) } } - prect = xalloc(sizeof(xRectangle) * nseg); + prect = malloc(sizeof(xRectangle) * nseg); if (!prect) return; for (i = 0; i < nseg; i++) { @@ -861,7 +861,7 @@ uxa_poly_segment(DrawablePtr pDrawable, GCPtr pGC, int nseg, xSegment * pSeg) } } pGC->ops->PolyFillRect(pDrawable, pGC, nseg, prect); - xfree(prect); + free(prect); } static Bool uxa_fill_region_solid(DrawablePtr pDrawable, RegionPtr pRegion, |