core/playlists/user: Free playlist name during deinit

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2016-09-28 17:02:42 -04:00
parent b4d78b0d3d
commit cb2af114c5
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ static struct db_entry *user_db_alloc(const gchar *name)
static void user_db_free(struct db_entry *dbe)
{
queue_deinit(&USER_PLAYLIST(dbe)->pl_playlist.pl_queue);
g_free(USER_PLAYLIST(dbe)->pl_playlist.pl_name);
g_free(USER_PLAYLIST(dbe));
}

View File

@ -20,7 +20,7 @@ enum playlist_type_t {
struct playlist {
enum playlist_type_t pl_type; /* This playlist's type. */
const gchar *pl_name; /* This playlist's name. */
gchar *pl_name; /* This playlist's name. */
struct queue pl_queue; /* This playlist's queue of tracks. */
};