summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-05-21 09:09:03 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-05-31 14:56:46 +1000
commitd5ba50b78ce5f65f12a50eb573e29268601a91ab (patch)
treed521cf6bd89f900f437d629ba36caef295f2633e
parent8dbee04d4b854d3d8aaf2bf1ba2ea937e8c312b8 (diff)
Free the x11 timer properly
Longer-standing bug, but now acessible in only one location. Previously SynapticsPreInit would just free the timer memory, not use the proper callback. If the timer was more complex, this would leave us with leask. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/synaptics-x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synaptics-x11.c b/src/synaptics-x11.c
index f379750..86b15ca 100644
--- a/src/synaptics-x11.c
+++ b/src/synaptics-x11.c
@@ -671,7 +671,7 @@ ReadInput(InputInfoPtr pInfo)
static void FreeX11Private(struct SynapticsX11 **x11)
{
if ((*x11)->timer)
- free((*x11)->timer);
+ TimerFree((*x11)->timer);
free(*x11);
*x11 = NULL;
}