mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
playlist_free_entry - use string_is_empty
This commit is contained in:
parent
bcfbf46e5a
commit
48e60d075c
12
playlist.c
12
playlist.c
@ -150,22 +150,22 @@ static void playlist_free_entry(struct playlist_entry *entry)
|
|||||||
if (!entry)
|
if (!entry)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (entry->path)
|
if (!string_is_empty(entry->path))
|
||||||
free(entry->path);
|
free(entry->path);
|
||||||
|
|
||||||
if (entry->label)
|
if (!string_is_empty(entry->label))
|
||||||
free(entry->label);
|
free(entry->label);
|
||||||
|
|
||||||
if (entry->core_path)
|
if (!string_is_empty(entry->core_path))
|
||||||
free(entry->core_path);
|
free(entry->core_path);
|
||||||
|
|
||||||
if (entry->core_name)
|
if (!string_is_empty(entry->core_name))
|
||||||
free(entry->core_name);
|
free(entry->core_name);
|
||||||
|
|
||||||
if (entry->db_name)
|
if (!string_is_empty(entry->db_name))
|
||||||
free(entry->db_name);
|
free(entry->db_name);
|
||||||
|
|
||||||
if (entry->crc32)
|
if (!string_is_empty(entry->crc32))
|
||||||
free(entry->crc32);
|
free(entry->crc32);
|
||||||
|
|
||||||
entry->path = NULL;
|
entry->path = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user