From 48e60d075c4014b94e83b85a0d17076cbe93f377 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 11 Dec 2016 23:00:26 +0100 Subject: [PATCH] playlist_free_entry - use string_is_empty --- playlist.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/playlist.c b/playlist.c index 530296a7da..0d2f2587e6 100644 --- a/playlist.c +++ b/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;