mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-08 20:00:19 +01:00
Xi: reset device properties to NULL after deleting them. (#25374)
Commit0e6cee853dintroduced cleanup code to remove the accel properties when switching schemes. The same code is triggered by the default closedown code but only after unconditionally removing all device properties (as part of the cleanup). The properties, although deleted never got reset to NULL. X.Org Bug 25374 <http://bugs.freedesktop.org/show_bug.cgi?id=25374> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Tested-by: Andy Furniss <lists@andyfurniss.entadsl.com> Reviewed-by: Dave Airlie <airlied@redhat.com> (cherry picked from commitea14a41821)
This commit is contained in:
parent
d55009f87f
commit
df842009a9
1 changed files with 2 additions and 0 deletions
|
|
@ -622,6 +622,8 @@ XIDeleteAllDeviceProperties (DeviceIntPtr device)
|
|||
XIDestroyDeviceProperty(prop);
|
||||
}
|
||||
|
||||
device->properties.properties = NULL;
|
||||
|
||||
/* Now free all handlers */
|
||||
curr_handler = device->properties.handlers;
|
||||
while(curr_handler)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue