mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 19:21:03 +00:00
Put back early return
This commit is contained in:
parent
a0e9d7a829
commit
3f19af45cd
@ -53,6 +53,9 @@ typedef struct
|
|||||||
|
|
||||||
static void free_autoconfig_handle(autoconfig_handle_t *autoconfig_handle)
|
static void free_autoconfig_handle(autoconfig_handle_t *autoconfig_handle)
|
||||||
{
|
{
|
||||||
|
if (!autoconfig_handle)
|
||||||
|
return;
|
||||||
|
|
||||||
if (autoconfig_handle->dir_autoconfig)
|
if (autoconfig_handle->dir_autoconfig)
|
||||||
{
|
{
|
||||||
free(autoconfig_handle->dir_autoconfig);
|
free(autoconfig_handle->dir_autoconfig);
|
||||||
@ -84,8 +87,7 @@ static void input_autoconfigure_free(retro_task_t *task)
|
|||||||
|
|
||||||
autoconfig_handle = (autoconfig_handle_t*)task->state;
|
autoconfig_handle = (autoconfig_handle_t*)task->state;
|
||||||
|
|
||||||
if (autoconfig_handle)
|
free_autoconfig_handle(autoconfig_handle);
|
||||||
free_autoconfig_handle(autoconfig_handle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************/
|
/******************************/
|
||||||
@ -737,8 +739,7 @@ error:
|
|||||||
task = NULL;
|
task = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (autoconfig_handle)
|
free_autoconfig_handle(autoconfig_handle);
|
||||||
free_autoconfig_handle(autoconfig_handle);
|
|
||||||
autoconfig_handle = NULL;
|
autoconfig_handle = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -898,8 +899,7 @@ error:
|
|||||||
task = NULL;
|
task = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (autoconfig_handle)
|
free_autoconfig_handle(autoconfig_handle);
|
||||||
free_autoconfig_handle(autoconfig_handle);
|
|
||||||
autoconfig_handle = NULL;
|
autoconfig_handle = NULL;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user