diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-11-24 15:31:48 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-11-25 15:26:38 +1000 |
commit | 8eca8eaef56526b9649b48aa5f83c3d7914cfdc4 (patch) | |
tree | 0c3a180cf4afd7a31d1ad3055be4028a74872412 /Xi | |
parent | 9998105a387e0294054502331a56e1e020cd93e4 (diff) |
Xi: when deleting all properties, reset property handler to NULL.
Trying to unregister property handlers during the device closure process
leads to invalid memory accesses.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 1b127ab8429616adf9ec31ba4d8bdd9af6e104a9)
Diffstat (limited to 'Xi')
-rw-r--r-- | Xi/xiproperty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Xi/xiproperty.c b/Xi/xiproperty.c index 482185703..ecb326ee3 100644 --- a/Xi/xiproperty.c +++ b/Xi/xiproperty.c @@ -630,6 +630,8 @@ XIDeleteAllDeviceProperties (DeviceIntPtr device) xfree(curr_handler); curr_handler = next_handler; } + + device->properties.handlers = NULL; } |