Merge pull request #2528 from heuripedes/master

(input_driver) Get rid of dangling pointer
This commit is contained in:
Twinaphex 2015-12-06 18:08:51 +01:00
commit 22bded8aad

View File

@ -711,6 +711,7 @@ bool input_driver_ctl(enum rarch_input_ctl_state state, void *data)
if (!current_input)
return false;
current_input->free(current_input_data);
current_input_data = NULL;
return true;
case RARCH_INPUT_CTL_DESTROY_DATA:
current_input_data = NULL;