x11: Prevent leak on XIQueryDevice

Per http://linux.die.net/man/3/xiquerydevice:

> XIFreeDeviceInfo frees the information returned by
> XIQueryDevice.
This commit is contained in:
Emilio Cobos Álvarez 2016-01-06 17:44:26 +01:00
parent f59be2588c
commit 21b9245ccc

View file

@ -315,6 +315,10 @@ fn read_input_axis_info(display: &Arc<XConnection>) -> Vec<Axis> {
} }
} }
unsafe {
(display.xinput2.XIFreeDeviceInfo)(devices);
}
axis_list axis_list
} }