diff options
Diffstat (limited to 'xorg-server/dix/events.c')
-rw-r--r-- | xorg-server/dix/events.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xorg-server/dix/events.c b/xorg-server/dix/events.c index 015c2b19f..7e0867c82 100644 --- a/xorg-server/dix/events.c +++ b/xorg-server/dix/events.c @@ -5080,12 +5080,9 @@ InitEvents(void) void CloseDownEvents(void) { - int len; - EventListPtr list; - - len = GetEventList(&list); - while(len--) - xfree(list[len].event); + FreeEventList(InputEventList, InputEventListLen); + InputEventListLen = 0; + InputEventList = NULL; } /** |