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>
(cherry picked from commit ea14a41821)
This commit is contained in:
Peter Hutterer 2009-12-03 11:21:31 +10:00
parent d55009f87f
commit df842009a9

View file

@ -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)