mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 15:48:07 +02:00
Xprint: Remove usage of alloca
Replace with heap-based allocations.
This commit is contained in:
parent
1c84337af0
commit
259f4c36d5
1 changed files with 2 additions and 2 deletions
|
|
@ -535,7 +535,7 @@ PsPolyGlyphBlt(
|
|||
|
||||
|
||||
nbyLine = BitmapBytePad(width);
|
||||
pbits = (unsigned char *)ALLOCATE_LOCAL(height*nbyLine);
|
||||
pbits = (unsigned char *)xalloc(height*nbyLine);
|
||||
if (!pbits){
|
||||
PsDestroyPixmap(pPixmap);
|
||||
return;
|
||||
|
|
@ -576,6 +576,6 @@ PsPolyGlyphBlt(
|
|||
|
||||
x += pci->metrics.characterWidth;
|
||||
}
|
||||
DEALLOCATE_LOCAL(pbits);
|
||||
xfree(pbits);
|
||||
FreeScratchGC(pGCtmp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue