mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Merge pull request #700 from ecoal95/querydevice-leak
x11: Prevent leak on XIQueryDevice
This commit is contained in:
commit
88e64a87a9
|
@ -315,6 +315,10 @@ fn read_input_axis_info(display: &Arc<XConnection>) -> Vec<Axis> {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe {
|
||||
(display.xinput2.XIFreeDeviceInfo)(devices);
|
||||
}
|
||||
|
||||
axis_list
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue