diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-11-27 16:01:53 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-12-03 08:23:53 +1000 |
commit | c20c8897272427cb3f755a3e28e80a9ad46f08a1 (patch) | |
tree | 4f01ecf26ac1c9fd32c44a8d326d350d90c50856 | |
parent | 66a9616d645f5a23225251d197e00b94c79274f6 (diff) |
dix: fix memory leak, free event list on shutdown. (#25028)
X.Org Bug 25028 <http://bugs.freedesktop.org/show_bug.cgi?id=25028>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | dix/events.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/dix/events.c b/dix/events.c index 015c2b19f..7e0867c82 100644 --- a/dix/events.c +++ b/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; } /** |