From f6ebcebfea83894a6f3aff6e98e6da6a7d00b23d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 7 Jan 2017 18:52:57 +0100 Subject: [PATCH] playlist.c - cleanup --- playlist.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/playlist.c b/playlist.c index 034987fc31..fa416b8873 100644 --- a/playlist.c +++ b/playlist.c @@ -152,27 +152,26 @@ static void playlist_free_entry(struct playlist_entry *entry) if (!string_is_empty(entry->path)) free(entry->path); + entry->path = NULL; if (!string_is_empty(entry->label)) free(entry->label); + entry->label = NULL; if (!string_is_empty(entry->core_path)) free(entry->core_path); + entry->core_path = NULL; if (!string_is_empty(entry->core_name)) free(entry->core_name); + entry->core_name = NULL; if (!string_is_empty(entry->db_name)) free(entry->db_name); + entry->db_name = NULL; if (!string_is_empty(entry->crc32)) free(entry->crc32); - - entry->path = NULL; - entry->label = NULL; - entry->core_path = NULL; - entry->core_name = NULL; - entry->db_name = NULL; entry->crc32 = NULL; }