diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-05-09 11:09:51 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-05-09 11:11:18 +1000 |
commit | 3bd40423b26ab692174ddcdd12489467ba876926 (patch) | |
tree | 4f01072dc80b938ff7fd8236de202ef92d89a4f3 | |
parent | eb50f8023e9ce11c3f0249ef9ddf398a1d983c84 (diff) |
Plug memory leak for priv->touch_axes
Allocated in event_query_touch, was never freed.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/synaptics.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index d4b21a9..eb38271 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -1035,6 +1035,8 @@ DeviceClose(DeviceIntPtr dev) RetValue = DeviceOff(dev); TimerFree(priv->timer); priv->timer = NULL; + free(priv->touch_axes); + priv->touch_axes = NULL; SynapticsHwStateFree(&priv->hwState); SynapticsHwStateFree(&priv->old_hw_state); SynapticsHwStateFree(&priv->local_hw_state); |