diff options
author | Rami Ylimäki <rami.ylimaki@vincit.fi> | 2011-03-04 17:55:32 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-03-09 07:59:41 +1000 |
commit | 8d30aff4aa708b9b885d492602ced7493a96a4df (patch) | |
tree | d1e886214d6b888382cde5a6fb6b2079523b9f8b /dix | |
parent | 40e56d34538f4663426db50893c231a2b5d760dc (diff) |
dix: Release input device config info when the device disconnects.
Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
Reviewed-by: Erkki Seppälä <erkki.seppala@vincit.fi>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix')
-rw-r--r-- | dix/devices.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/devices.c b/dix/devices.c index b8d8e7bb9..f1ba31ea2 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -938,6 +938,8 @@ CloseDevice(DeviceIntPtr dev) } free(dev->deviceGrab.sync.event); + free(dev->config_info); /* Allocated in xf86ActivateDevice. */ + dev->config_info = NULL; dixFreeObjectWithPrivates(dev, PRIVATE_DEVICE); } |