Re: [PATCH 1/2] dix: don't overwrite proximity/focus classes

2013-05-09 Thread Dave Airlie
On Thu, May 9, 2013 at 2:30 PM, Peter Hutterer peter.hutte...@who-t.net wrote: InitPointerClassDeviceStruct/InitKeyboardDeviceStruct allocate a proximity/focus class, respectively. If a driver calls InitFocusClassDeviceStruct or InitProximityClassDeviceStruct beforehand, the previously

[PATCH 1/2] dix: don't overwrite proximity/focus classes

2013-05-08 Thread Peter Hutterer
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