mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-28 04:00:07 +01:00
DIX: Remove last alloca call
Replace with heap allocations.
This commit is contained in:
parent
1179ddea94
commit
83e5d9e75d
1 changed files with 2 additions and 2 deletions
|
|
@ -406,7 +406,7 @@ Dispatch(void)
|
|||
InitSelections();
|
||||
nClients = 0;
|
||||
|
||||
clientReady = (int *) ALLOCATE_LOCAL(sizeof(int) * MaxClients);
|
||||
clientReady = (int *) xalloc(sizeof(int) * MaxClients);
|
||||
if (!clientReady)
|
||||
return;
|
||||
|
||||
|
|
@ -535,7 +535,7 @@ Dispatch(void)
|
|||
ddxBeforeReset ();
|
||||
#endif
|
||||
KillAllClients();
|
||||
DEALLOCATE_LOCAL(clientReady);
|
||||
xfree(clientReady);
|
||||
dispatchException &= ~DE_RESET;
|
||||
#ifdef XSERVER_DTRACE
|
||||
FreeRequestNames();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue