mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-02-24 00:37:43 +11:00
Merge pull request #700 from ecoal95/querydevice-leak
x11: Prevent leak on XIQueryDevice
This commit is contained in:
commit
88e64a87a9
1 changed files with 6 additions and 2 deletions
|
@ -315,6 +315,10 @@ fn read_input_axis_info(display: &Arc<XConnection>) -> Vec<Axis> {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe {
|
||||
(display.xinput2.XIFreeDeviceInfo)(devices);
|
||||
}
|
||||
|
||||
axis_list
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue