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 10:57:07 +1000 |
commit | 1b127ab8429616adf9ec31ba4d8bdd9af6e104a9 (patch) | |
tree | a81139dafed33b48f977d14a3d6a35cfcb1dbc5c /Xi | |
parent | 8806375ed72a3cd465fe0a49ead079a334accd6b (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>
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; } |