[PATCH 1/2] Xi: make stub DeleteInputDeviceRequest call RemoveDevice

Julien Cristau jcristau at debian.org
Fri May 11 12:31:49 PDT 2012


DeleteInputDeviceRequest is called from CloseDownDevices on reset, so
call RemoveDevice to avoid leaking devices in Xvfb/Xnest/Xwin.

Signed-off-by: Julien Cristau <jcristau at debian.org>
---
 Xi/stubs.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/Xi/stubs.c b/Xi/stubs.c
index 8baa5a0..39bee7c 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);
 }
-- 
1.7.10



More information about the xorg-devel mailing list