summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2012-05-11 21:31:49 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2012-06-05 12:10:36 +1000
commitaaf48906279bcf74bcfd0a1de24de099184be022 (patch)
treec241e2b3ed7fa74b6c3d66741499909a0146b2f4
parentf4a1ecb9280570c473631760885cc2afb5d174b9 (diff)
Xi: make stub DeleteInputDeviceRequest call RemoveDevice
DeleteInputDeviceRequest is called from CloseDownDevices on reset, so call RemoveDevice to avoid leaking devices in Xvfb/Xnest/Xwin. Signed-off-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit e4153c1d9138ed40de1c615525066a0f5bb599dc)
-rw-r--r--Xi/stubs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Xi/stubs.c b/Xi/stubs.c
index 8baa5a09b..39bee7c27 100644
--- a/Xi/stubs.c
+++ b/Xi/stubs.c
@@ -141,4 +141,5 @@ NewInputDeviceRequest(InputOption *options, InputAttributes * attrs,
void
DeleteInputDeviceRequest(DeviceIntPtr dev)
{
+ RemoveDevice(dev, TRUE);
}