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:
Enrico Weigelt, metux IT consult
2025-07-11 15:45:37 +02:00
committed by Enrico Weigelt
parent c54d8b1b34
commit 90bfeca905

View File

@@ -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;
}