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:
Rami Ylimäki
2011-03-08 11:23:46 +02:00
committed by Peter Hutterer
parent 50193a0dd3
commit b4c47d5f94

View File

@@ -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);
}