diff options
Diffstat (limited to 'Xi/gtmotion.c')
-rw-r--r-- | Xi/gtmotion.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xi/gtmotion.c b/Xi/gtmotion.c index de22d0484..4f4d7cb77 100644 --- a/Xi/gtmotion.c +++ b/Xi/gtmotion.c @@ -134,7 +134,7 @@ ProcXGetDeviceMotionEvents(ClientPtr client) if (num_events) { size = sizeof(Time) + (axes * sizeof(INT32)); tsize = num_events * size; - coords = (INT32 *) ALLOCATE_LOCAL(tsize); + coords = (INT32 *) xalloc(tsize); if (!coords) return BadAlloc; rep.nEvents = (v->GetMotionProc) (dev, (xTimecoord *) coords, /* XXX */ @@ -160,7 +160,7 @@ ProcXGetDeviceMotionEvents(ClientPtr client) WriteToClient(client, length * 4, (char *)coords); } if (coords) - DEALLOCATE_LOCAL(coords); + xfree(coords); return Success; } |