mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 03:30:06 +01:00
Fix a stray use of ALLOCATE_LOCAL.
This commit is contained in:
parent
8248537722
commit
57d48d94b8
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