From a3ca4ee52df2035dfe0514a68b047ff588502e7f Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 30 Apr 2026 18:07:10 +0200 Subject: [PATCH] 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 --- dix/devices.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dix/devices.c b/dix/devices.c index c1aa45c249..68479a45bb 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -1713,6 +1713,8 @@ InitTouchClassDeviceStruct(DeviceIntPtr device, unsigned int max_touches, free(touch->touches); free(touch); + device->touch = NULL; + return FALSE; }