aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xi/gtmotion.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/Xi/gtmotion.c')
-rw-r--r--nx-X11/programs/Xserver/Xi/gtmotion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/Xi/gtmotion.c b/nx-X11/programs/Xserver/Xi/gtmotion.c
index 922a5565c..9c04ca30e 100644
--- a/nx-X11/programs/Xserver/Xi/gtmotion.c
+++ b/nx-X11/programs/Xserver/Xi/gtmotion.c
@@ -147,7 +147,7 @@ ProcXGetDeviceMotionEvents(client)
{
size = sizeof(Time) + (axes * sizeof (INT32));
tsize = num_events * size;
- coords = (INT32 *) ALLOCATE_LOCAL(tsize);
+ coords = (INT32 *) malloc(tsize);
if (!coords)
{
SendErrorToClient(client, IReqCode, X_GetDeviceMotionEvents, 0,
@@ -179,7 +179,7 @@ ProcXGetDeviceMotionEvents(client)
WriteToClient(client, length * 4, coords);
}
if (coords)
- DEALLOCATE_LOCAL(coords);
+ free(coords);
return Success;
}