dix: Release input device config info when the device disconnects.
Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi> Reviewed-by: Erkki Seppälä <erkki.seppala@vincit.fi> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
40e56d3453
commit
8d30aff4aa
|
@ -938,6 +938,8 @@ CloseDevice(DeviceIntPtr dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
free(dev->deviceGrab.sync.event);
|
free(dev->deviceGrab.sync.event);
|
||||||
|
free(dev->config_info); /* Allocated in xf86ActivateDevice. */
|
||||||
|
dev->config_info = NULL;
|
||||||
dixFreeObjectWithPrivates(dev, PRIVATE_DEVICE);
|
dixFreeObjectWithPrivates(dev, PRIVATE_DEVICE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue