summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-03-07 12:29:55 -0500
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>2007-03-07 12:29:55 -0500
commitb5fde366e2e21234ac0b81222fd5c42ca3e49cba (patch)
tree21c4d64fc97f8a7b0ec39f7e7a408540dd78691e /dix
parenta3d2c5d622d9ca36d6fa2966aff09524e3ea39ac (diff)
Properly free device devPrivates - memory leak fix.
Diffstat (limited to 'dix')
-rw-r--r--dix/devices.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dix/devices.c b/dix/devices.c
index 9f4218414..d5acb2d4e 100644
--- a/dix/devices.c
+++ b/dix/devices.c
@@ -494,6 +494,9 @@ CloseDevice(register DeviceIntPtr dev)
XkbRemoveResourceClient((DevicePtr)dev,dev->xkb_interest->resource);
#endif
+ if (dev->devPrivates)
+ xfree(dev->devPrivates);
+
xfree(dev->sync.event);
xfree(dev);
}