summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-11-27 16:01:53 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-12-03 08:23:53 +1000
commitc20c8897272427cb3f755a3e28e80a9ad46f08a1 (patch)
tree4f01ecf26ac1c9fd32c44a8d326d350d90c50856 /dix
parent66a9616d645f5a23225251d197e00b94c79274f6 (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>
Diffstat (limited to 'dix')
-rw-r--r--dix/events.c9
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;
}
/**