mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
Xext: Remove usage of alloca
Replace with heap allocations.
This commit is contained in:
parent
fb32bb9839
commit
934281126f
10 changed files with 66 additions and 66 deletions
|
|
@ -673,7 +673,7 @@ CreateSaverWindow (pScreen)
|
|||
wantMap = wColormap (pWin);
|
||||
if (wantMap == None)
|
||||
return TRUE;
|
||||
installedMaps = (Colormap *) ALLOCATE_LOCAL (pScreen->maxInstalledCmaps *
|
||||
installedMaps = (Colormap *) xalloc (pScreen->maxInstalledCmaps *
|
||||
sizeof (Colormap));
|
||||
numInstalled = (*pWin->drawable.pScreen->ListInstalledColormaps)
|
||||
(pScreen, installedMaps);
|
||||
|
|
@ -681,7 +681,7 @@ CreateSaverWindow (pScreen)
|
|||
if (installedMaps[i] == wantMap)
|
||||
break;
|
||||
|
||||
DEALLOCATE_LOCAL ((char *) installedMaps);
|
||||
xfree ((char *) installedMaps);
|
||||
|
||||
if (i < numInstalled)
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue