mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-21 01:40:04 +01:00
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>
This commit is contained in:
parent
66a9616d64
commit
c20c889727
1 changed files with 3 additions and 6 deletions
|
|
@ -5080,12 +5080,9 @@ InitEvents(void)
|
||||||
void
|
void
|
||||||
CloseDownEvents(void)
|
CloseDownEvents(void)
|
||||||
{
|
{
|
||||||
int len;
|
FreeEventList(InputEventList, InputEventListLen);
|
||||||
EventListPtr list;
|
InputEventListLen = 0;
|
||||||
|
InputEventList = NULL;
|
||||||
len = GetEventList(&list);
|
|
||||||
while(len--)
|
|
||||||
xfree(list[len].event);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue