mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 12:41:00 +00:00
Cleanups
This commit is contained in:
parent
716a21b5ac
commit
4b2abc3334
13
core_info.c
13
core_info.c
@ -875,11 +875,7 @@ bool core_info_database_supports_content_path(const char *database_path, const c
|
|||||||
database = strdup(new_path);
|
database = strdup(new_path);
|
||||||
|
|
||||||
if (string_is_empty(database))
|
if (string_is_empty(database))
|
||||||
{
|
goto error;
|
||||||
if (database)
|
|
||||||
free(database);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
path_remove_extension(database);
|
path_remove_extension(database);
|
||||||
|
|
||||||
@ -907,8 +903,7 @@ bool core_info_database_supports_content_path(const char *database_path, const c
|
|||||||
&& !string_list_find_elem(info->supported_extensions_list, "7z"))
|
&& !string_list_find_elem(info->supported_extensions_list, "7z"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
free(database);
|
goto error;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -929,7 +924,9 @@ bool core_info_database_supports_content_path(const char *database_path, const c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free(database);
|
error:
|
||||||
|
if (database)
|
||||||
|
free(database);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user