summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-06-28 00:57:57 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-06-28 00:57:57 +1000
commit7efc947e3cb2fe254f5b44bd1a0f4629fb777a95 (patch)
tree0b1d2daab233dec66152a1883597b4ef694ffe3d
parentd23472b709fafd48f8403e6ea97918c06cc3caaf (diff)
Don't reset the stored device's private
Storing references to the finger/stylus pInfo is dangerous as-is, but accessing them during the UnInit is suboptimal. This pInfo may have been freed already. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/xf86MuTouch.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/xf86MuTouch.c b/src/xf86MuTouch.c
index d382b19..290fa11 100644
--- a/src/xf86MuTouch.c
+++ b/src/xf86MuTouch.c
@@ -1044,8 +1044,6 @@ xf86MuTUninit(InputDriverPtr drv,
MuTPrivatePtr priv = (MuTPrivatePtr) pInfo->private;
if (priv) {
- priv->stylus->private = NULL;
- priv->finger->private = NULL;
free(priv->input_dev);
free(priv);
pInfo->private = NULL;