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