[PATCH xserver 2/3] dix: Release input device config info when the device disconnects.
Rami Ylimäki
rami.ylimaki at vincit.fi
Fri Mar 4 07:55:32 PST 2011
Signed-off-by: Rami Ylimäki <rami.ylimaki at vincit.fi>
Reviewed-by: Erkki Seppälä <erkki.seppala at vincit.fi>
---
dix/devices.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dix/devices.c b/dix/devices.c
index 9aaadc4..5ea6ad6 100644
--- a/dix/devices.c
+++ b/dix/devices.c
@@ -936,6 +936,8 @@ CloseDevice(DeviceIntPtr dev)
}
free(dev->deviceGrab.sync.event);
+ free(dev->config_info); /* Allocated in xf86ActivateDevice. */
+ dev->config_info = NULL;
dixFreeObjectWithPrivates(dev, PRIVATE_DEVICE);
}
--
1.6.3.3
More information about the xorg-devel
mailing list