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-05-24 14:57:11 +1000
commite4153c1d9138ed40de1c615525066a0f5bb599dc (patch)
treea370f72b40a06922200ffe089be9ad9839f68ae9
parent2d4fda4b09e67e47d3e6fc4743fc6e81bfe40f28 (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>
-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);
}