mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
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>
This commit is contained in:
committed by
Peter Hutterer
parent
50193a0dd3
commit
b4c47d5f94
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user