Xi: reset device properties to NULL after deleting them. (#25374)

Commit 0e6cee853d introduced 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>
This commit is contained in:
Peter Hutterer 2009-12-03 11:21:31 +10:00
parent 9ac6a048ef
commit ea14a41821

View File

@ -622,6 +622,8 @@ XIDeleteAllDeviceProperties (DeviceIntPtr device)
XIDestroyDeviceProperty(prop); XIDestroyDeviceProperty(prop);
} }
device->properties.properties = NULL;
/* Now free all handlers */ /* Now free all handlers */
curr_handler = device->properties.handlers; curr_handler = device->properties.handlers;
while(curr_handler) while(curr_handler)