dix: free memory associated with the EventList. #16507
Un-deprecates CloseDownEvents. X.Org Bug 16507 <http://bugs.freedesktop.org/show_bug.cgi?id=16507>
This commit is contained in:
parent
3a2beb2f86
commit
a81b5ce452
11
dix/events.c
11
dix/events.c
|
@ -5520,14 +5520,15 @@ InitEvents(void)
|
|||
FatalError("[dix] Failed to allocate input event list.\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is deprecated! It shouldn't be used anymore. It used to free
|
||||
* the spriteTraces, but now they are freed when the SpriteRec is freed.
|
||||
*/
|
||||
_X_DEPRECATED void
|
||||
void
|
||||
CloseDownEvents(void)
|
||||
{
|
||||
int len;
|
||||
EventListPtr list;
|
||||
|
||||
len = GetEventList(&list);
|
||||
while(len--)
|
||||
xfree(list[len].event);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -437,6 +437,7 @@ int main(int argc, char *argv[], char *envp[])
|
|||
|
||||
memset(WindowTable, 0, MAXSCREENS * sizeof(WindowPtr));
|
||||
CloseDownDevices();
|
||||
CloseDownEvents();
|
||||
|
||||
for (i = screenInfo.numScreens - 1; i >= 0; i--)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user