mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-24 19:56:06 +00:00
(IOHidManager) Fix adapter leak
This commit is contained in:
parent
4e74a990d4
commit
c1e82d3f1a
@ -248,8 +248,10 @@ static void iohidmanager_hid_device_remove(void *data,
|
||||
memset(hid->axes[adapter->slot], 0, sizeof(hid->axes));
|
||||
|
||||
pad_connection_pad_deinit(&hid->slots[adapter->slot], adapter->slot);
|
||||
free(adapter);
|
||||
}
|
||||
|
||||
if (adapter)
|
||||
free(adapter);
|
||||
}
|
||||
|
||||
static int32_t iohidmanager_hid_device_get_int_property(
|
||||
|
Loading…
Reference in New Issue
Block a user