DIX: Remove last alloca call
Replace with heap allocations.
This commit is contained in:
parent
1179ddea94
commit
83e5d9e75d
|
@ -406,7 +406,7 @@ Dispatch(void)
|
||||||
InitSelections();
|
InitSelections();
|
||||||
nClients = 0;
|
nClients = 0;
|
||||||
|
|
||||||
clientReady = (int *) ALLOCATE_LOCAL(sizeof(int) * MaxClients);
|
clientReady = (int *) xalloc(sizeof(int) * MaxClients);
|
||||||
if (!clientReady)
|
if (!clientReady)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -535,7 +535,7 @@ Dispatch(void)
|
||||||
ddxBeforeReset ();
|
ddxBeforeReset ();
|
||||||
#endif
|
#endif
|
||||||
KillAllClients();
|
KillAllClients();
|
||||||
DEALLOCATE_LOCAL(clientReady);
|
xfree(clientReady);
|
||||||
dispatchException &= ~DE_RESET;
|
dispatchException &= ~DE_RESET;
|
||||||
#ifdef XSERVER_DTRACE
|
#ifdef XSERVER_DTRACE
|
||||||
FreeRequestNames();
|
FreeRequestNames();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user