mirror of
https://github.com/X11Libre/xserver.git
synced 2026-12-01 08:00:28 +00:00
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:
parent
89ef86a78c
commit
a3ca4ee52d
1 changed files with 2 additions and 0 deletions
|
|
@ -1713,6 +1713,8 @@ InitTouchClassDeviceStruct(DeviceIntPtr device, unsigned int max_touches,
|
|||
free(touch->touches);
|
||||
free(touch);
|
||||
|
||||
device->touch = NULL;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue