mirror of
https://github.com/libretro/RetroArch
synced 2025-02-16 03:40:12 +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);
|
||||
|
||||
if (string_is_empty(database))
|
||||
{
|
||||
if (database)
|
||||
free(database);
|
||||
return false;
|
||||
}
|
||||
goto error;
|
||||
|
||||
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"))
|
||||
continue;
|
||||
|
||||
free(database);
|
||||
return false;
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user