mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 02:58:06 +02:00
Fix a stray use of ALLOCATE_LOCAL.
(cherry picked from commit 57d48d94b8)
This commit is contained in:
parent
43739b9a32
commit
4a61cf3b08
1 changed files with 3 additions and 3 deletions
|
|
@ -28,11 +28,11 @@
|
|||
#define SETSPANPTRS(IN,N,IPW,PW,IPPT,PPT,FPW,FPPT,FSORT) \
|
||||
{ \
|
||||
N = IN * miFindMaxBand(pGC->pCompositeClip); \
|
||||
if(!(PW = (int *)ALLOCATE_LOCAL(N * sizeof(int)))) \
|
||||
if(!(PW = (int *)xalloc(N * sizeof(int)))) \
|
||||
return; \
|
||||
if(!(PPT = (DDXPointRec *)ALLOCATE_LOCAL(N * sizeof(DDXPointRec)))) \
|
||||
if(!(PPT = (DDXPointRec *)xalloc(N * sizeof(DDXPointRec)))) \
|
||||
{ \
|
||||
DEALLOCATE_LOCAL(PW); \
|
||||
free(PW); \
|
||||
return; \
|
||||
} \
|
||||
FPW = PW; \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue