diff options
author | Rami Ylimäki <rami.ylimaki@vincit.fi> | 2011-03-08 11:23:46 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-03-09 15:23:50 +1000 |
commit | b4c47d5f9454a708a5ab161c015646f2ca6e1ac3 (patch) | |
tree | d98859599ad91cf54fc5743bdca9520fd0f622cc /src/evdev.c | |
parent | 50193a0dd35b6f54499fb76ab68f615237cc51f9 (diff) |
Release leaked device identifier on input device disconnect.
Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
Reviewed-by: Erkki Seppälä <erkki.seppala@vincit.fi>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.c')
-rw-r--r-- | src/evdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c index 679df38..b62caa2 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1834,6 +1834,9 @@ EvdevUnInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags) { /* Release strings allocated in EvdevAddKeyClass. */ XkbFreeRMLVOSet(&pEvdev->rmlvo, FALSE); + /* Release string allocated in EvdevOpenDevice. */ + free((void *)pEvdev->device); /* (const char *) */ + pEvdev->device = NULL; } xf86DeleteInput(pInfo, flags); } |