mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 08:59:58 +00:00
(OSX) Prevent crash
This commit is contained in:
parent
d3e4c1278a
commit
7197be5a0d
@ -38,7 +38,12 @@ static bool hid_joypad_query_pad(unsigned pad)
|
||||
|
||||
static void hid_joypad_free(void)
|
||||
{
|
||||
generic_hid->free((void*)hid_driver_get_data());
|
||||
if (!generic_hid)
|
||||
return;
|
||||
|
||||
if (generic_hid->free)
|
||||
generic_hid->free((void*)hid_driver_get_data());
|
||||
|
||||
generic_hid = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user