mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-25 08:29:23 +00:00
Properly free device devPrivates - memory leak fix.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user