[PATCH] evdev:close mtdev device when removing all devices.

Christopher Michael cpmichael1 at comcast.net
Tue Mar 27 09:50:41 PDT 2012


---
 src/evdev.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/evdev.c b/src/evdev.c
index 8642f51..544ae7a 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -688,6 +688,8 @@ evdev_remove_devices(struct weston_input_device *input_base)
         wl_list_for_each_safe(device, next, &input->devices_list, link) {
 		wl_event_source_remove(device->source);
 		wl_list_remove(&device->link);
+		if (device->mtdev)
+			mtdev_close_delete(device->mtdev);
 		close(device->fd);
 		free(device->devnode);
 		free(device);
-- 
1.7.8.5


--------------030302060205000202020808--


More information about the wayland-devel mailing list