Merge pull request #700 from ecoal95/querydevice-leak

x11: Prevent leak on XIQueryDevice
This commit is contained in:
tomaka 2016-01-07 15:44:43 +01:00
commit 88e64a87a9

View file

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