summaryrefslogtreecommitdiff
path: root/Xi/gtmotion.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xi/gtmotion.c')
-rw-r--r--Xi/gtmotion.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Xi/gtmotion.c b/Xi/gtmotion.c
index 32d80eeec..9132f4f47 100644
--- a/Xi/gtmotion.c
+++ b/Xi/gtmotion.c
@@ -153,8 +153,7 @@ ProcXGetDeviceMotionEvents(ClientPtr client)
}
WriteToClient(client, length * 4, (char *)coords);
}
- if (coords)
- free(coords);
+ free(coords);
return Success;
}