Refine RARCH_INPUT_CTL_DEINIT
This commit is contained in:
parent
ff48aaee7d
commit
decbffd25b
|
@ -708,9 +708,8 @@ bool input_driver_ctl(enum rarch_input_ctl_state state, void *data)
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
case RARCH_INPUT_CTL_DEINIT:
|
case RARCH_INPUT_CTL_DEINIT:
|
||||||
if (!current_input)
|
if (current_input && current_input->free)
|
||||||
return false;
|
current_input->free(current_input_data);
|
||||||
current_input->free(current_input_data);
|
|
||||||
current_input_data = NULL;
|
current_input_data = NULL;
|
||||||
return true;
|
return true;
|
||||||
case RARCH_INPUT_CTL_DESTROY_DATA:
|
case RARCH_INPUT_CTL_DESTROY_DATA:
|
||||||
|
|
Loading…
Reference in New Issue