summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-08-18 15:36:07 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-08-24 16:17:14 +1000
commit36d6b8efe232cc20afb74799f013c03cbb79a68b (patch)
tree41449086629eef635f5d23afd923307ec570d0a3
parenta18af14b1df5271fbe3100df3fcb3a8811981ddf (diff)
Reset local->private to NULL to avoid double-frees. (#23239)
X.Org Bug 23239 <http://bugs.freedesktop.org/show_bug.cgi?id=23239> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/xf86Elo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xf86Elo.c b/src/xf86Elo.c
index 495a43c..ad88621 100644
--- a/src/xf86Elo.c
+++ b/src/xf86Elo.c
@@ -1050,7 +1050,7 @@ xf86EloUninit(InputDriverPtr drv,
xfree(priv->input_dev);
xfree(priv);
-
+ local->private = NULL;
xf86DeleteInput(local, 0);
}