mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 18:27:50 +00:00
Fixed a memory leak in fill_device_info_usage() (thanks @digant73)
Fixes https://github.com/libsdl-org/SDL/issues/13998
(cherry picked from commit 5503fe1c1b)
This commit is contained in:
parent
482c5130eb
commit
6cb55ebd46
1 changed files with 2 additions and 0 deletions
|
|
@ -671,6 +671,8 @@ static void fill_device_info_usage(struct hid_device_info *cur_dev, libusb_devic
|
|||
|
||||
cur_dev->usage_page = page;
|
||||
cur_dev->usage = usage;
|
||||
|
||||
free(hid_report_descriptor);
|
||||
}
|
||||
|
||||
#ifdef INVASIVE_GET_USAGE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue