mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
move buflib_free invalid handle check to the function
allow buflib_free to check for invalid or already freed handles within the function -- remove all the invalid handle guards thru core_free Change-Id: Ibdcbc82760fc93b674c42283fca420d94907df8e
This commit is contained in:
parent
9d3d925295
commit
12ef045fdf
18 changed files with 32 additions and 62 deletions
|
@ -1219,8 +1219,7 @@ int action_set_keymap_handle(int handle, int count)
|
|||
return -1;
|
||||
#else
|
||||
/* free an existing remap */
|
||||
if (action_last.key_remap > 0)
|
||||
action_last.key_remap = core_free(action_last.key_remap);
|
||||
action_last.key_remap = core_free(action_last.key_remap);
|
||||
|
||||
/* if clearing the remap, we're done */
|
||||
if (count <= 0 || handle <= 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue