mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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)
|
||||
return;
|
||||
|
||||
if (entry->path)
|
||||
if (!string_is_empty(entry->path))
|
||||
free(entry->path);
|
||||
|
||||
if (entry->label)
|
||||
if (!string_is_empty(entry->label))
|
||||
free(entry->label);
|
||||
|
||||
if (entry->core_path)
|
||||
if (!string_is_empty(entry->core_path))
|
||||
free(entry->core_path);
|
||||
|
||||
if (entry->core_name)
|
||||
if (!string_is_empty(entry->core_name))
|
||||
free(entry->core_name);
|
||||
|
||||
if (entry->db_name)
|
||||
if (!string_is_empty(entry->db_name))
|
||||
free(entry->db_name);
|
||||
|
||||
if (entry->crc32)
|
||||
if (!string_is_empty(entry->crc32))
|
||||
free(entry->crc32);
|
||||
|
||||
entry->path = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user