diff options
-rw-r--r-- | src/synaptics.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index 5b932fd..bc4b1b4 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -635,7 +635,9 @@ static void SynapticsUnInit(InputDriverPtr drv, InputInfoPtr local, int flags) { - xfree(((SynapticsPrivate *)local->private)->timer); + SynapticsPrivate *priv = ((SynapticsPrivate *)local->private); + if (priv && priv->timer) + xfree(priv->timer); xfree(local->private); local->private = NULL; xf86DeleteInput(local, 0); |