mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
Xi: drop unused variable and NULL free in ProcXISelectEvents()
The `types` variable is never used, just assigned NULL - and that NULL
value is passed to free(). This code is really doing nothing, never did so
since introduced in 2009.
Fixes: 8b6a370058
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
c54d8b1b34
commit
90bfeca905
@@ -151,7 +151,6 @@ ProcXISelectEvents(ClientPtr client)
|
||||
DeviceIntPtr dev;
|
||||
DeviceIntRec dummy;
|
||||
xXIEventMask *evmask;
|
||||
int *types = NULL;
|
||||
int len;
|
||||
|
||||
REQUEST(xXISelectEventsReq);
|
||||
@@ -327,8 +326,6 @@ ProcXISelectEvents(ClientPtr client)
|
||||
}
|
||||
|
||||
RecalculateDeliverableEvents(win);
|
||||
|
||||
free(types);
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user