dix: InitTouchClassDeviceStruct(): clear touch pointer in device on error

Clear the pointer to touch structure on error path

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2026-04-30 18:07:10 +02:00 • committed by Enrico Weigelt
commit a3ca4ee52d

View file

@ -1713,6 +1713,8 @@ InitTouchClassDeviceStruct(DeviceIntPtr device, unsigned int max_touches,
free(touch->touches);
free(touch);
device->touch = NULL;
return FALSE;
}