mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +00:00
Merge pull request #2528 from heuripedes/master
(input_driver) Get rid of dangling pointer
This commit is contained in:
commit
22bded8aad
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user