aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/mi/mipolyrect.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/mi/mipolyrect.c')
-rw-r--r--nx-X11/programs/Xserver/mi/mipolyrect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/mi/mipolyrect.c b/nx-X11/programs/Xserver/mi/mipolyrect.c
index 2fe70cf4b..ee0688513 100644
--- a/nx-X11/programs/Xserver/mi/mipolyrect.c
+++ b/nx-X11/programs/Xserver/mi/mipolyrect.c
@@ -94,7 +94,7 @@ miPolyRectangle(pDraw, pGC, nrects, pRects)
offset2 = pGC->lineWidth;
offset1 = offset2 >> 1;
offset3 = offset2 - offset1;
- tmp = (xRectangle *) ALLOCATE_LOCAL(ntmp * sizeof (xRectangle));
+ tmp = (xRectangle *) malloc(ntmp * sizeof (xRectangle));
if (!tmp)
return;
t = tmp;
@@ -162,7 +162,7 @@ miPolyRectangle(pDraw, pGC, nrects, pRects)
}
}
(*pGC->ops->PolyFillRect) (pDraw, pGC, t - tmp, tmp);
- DEALLOCATE_LOCAL ((void *) tmp);
+ free ((void *) tmp);
}
else
{