On Mon, Aug 22, 2011 at 03:35:18PM +1000, Peter Hutterer wrote:
@@ -1564,13 +1576,13 @@ wireToDeviceChangedEvent(xXIDeviceChangedEvent *in,
XGenericEventCookie *cookie)
out-deviceid = in-deviceid;
out-sourceid = in-sourceid;
out-reason = in-reason;
-out-num_classes =
If the server sends an unknown device class in response to an XIQueryDevice
call, no memory is allocated for these classes but we still write type
and sourceid as well as setting to-classes[i]. The latter causes multiple
classes to point to the same memory field.
Move the common code of assigning