mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Refine RARCH_INPUT_CTL_DEINIT
This commit is contained in:
parent
ff48aaee7d
commit
decbffd25b
@ -708,8 +708,7 @@ bool input_driver_ctl(enum rarch_input_ctl_state state, void *data)
|
||||
return false;
|
||||
return true;
|
||||
case RARCH_INPUT_CTL_DEINIT:
|
||||
if (!current_input)
|
||||
return false;
|
||||
if (current_input && current_input->free)
|
||||
current_input->free(current_input_data);
|
||||
current_input_data = NULL;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user