parent
683ee1776d
commit
fb32bb9839
|
@ -135,7 +135,7 @@ ProcXGetDeviceMotionEvents(ClientPtr client)
|
||||||
if (num_events) {
|
if (num_events) {
|
||||||
size = sizeof(Time) + (axes * sizeof(INT32));
|
size = sizeof(Time) + (axes * sizeof(INT32));
|
||||||
tsize = num_events * size;
|
tsize = num_events * size;
|
||||||
coords = (INT32 *) ALLOCATE_LOCAL(tsize);
|
coords = (INT32 *) xalloc(tsize);
|
||||||
if (!coords)
|
if (!coords)
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
rep.nEvents = (v->GetMotionProc) (dev, (xTimecoord *) coords, /* XXX */
|
rep.nEvents = (v->GetMotionProc) (dev, (xTimecoord *) coords, /* XXX */
|
||||||
|
@ -161,7 +161,7 @@ ProcXGetDeviceMotionEvents(ClientPtr client)
|
||||||
WriteToClient(client, length * 4, (char *)coords);
|
WriteToClient(client, length * 4, (char *)coords);
|
||||||
}
|
}
|
||||||
if (coords)
|
if (coords)
|
||||||
DEALLOCATE_LOCAL(coords);
|
xfree(coords);
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue