mirror of
https://github.com/libretro/RetroArch
synced 2025-02-18 00:40:36 +00:00
Cleanups
This commit is contained in:
parent
3dc944977c
commit
1386476792
@ -306,6 +306,7 @@ static void input_autoconfigure_connect_handler(retro_task_t *task)
|
||||
|
||||
if (!params || !input_autoconfigure_joypad_init(params) || string_is_empty(params->name))
|
||||
{
|
||||
free(params);
|
||||
task->finished = true;
|
||||
return;
|
||||
}
|
||||
@ -324,11 +325,6 @@ static void input_autoconfigure_connect_handler(retro_task_t *task)
|
||||
params->name, (long)params->vid, (long)params->pid,
|
||||
msg_hash_to_str(MSG_DEVICE_NOT_CONFIGURED));
|
||||
task->title = strdup(msg);
|
||||
|
||||
free(params);
|
||||
|
||||
task->finished = true;
|
||||
return;
|
||||
}
|
||||
|
||||
free(params);
|
||||
|
Loading…
x
Reference in New Issue
Block a user