On Thu, May 9, 2013 at 2:30 PM, Peter Hutterer <[email protected]> wrote: > InitPointerClassDeviceStruct/InitKeyboardDeviceStruct allocate a > proximity/focus class, respectively. If a driver calls > InitFocusClassDeviceStruct or InitProximityClassDeviceStruct beforehand, > the previously allocated class is overwritten, leaking the memory. > > Neither takes a parameter other than the device, so we can simply skip > initialising it if we already have one. > > Signed-off-by: Peter Hutterer <[email protected]>
Reviewed-by: Dave Airlie <[email protected]> _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
