core/playlists/user: Free playlist name during deinit
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
b4d78b0d3d
commit
cb2af114c5
|
@ -26,6 +26,7 @@ static struct db_entry *user_db_alloc(const gchar *name)
|
||||||
static void user_db_free(struct db_entry *dbe)
|
static void user_db_free(struct db_entry *dbe)
|
||||||
{
|
{
|
||||||
queue_deinit(&USER_PLAYLIST(dbe)->pl_playlist.pl_queue);
|
queue_deinit(&USER_PLAYLIST(dbe)->pl_playlist.pl_queue);
|
||||||
|
g_free(USER_PLAYLIST(dbe)->pl_playlist.pl_name);
|
||||||
g_free(USER_PLAYLIST(dbe));
|
g_free(USER_PLAYLIST(dbe));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ enum playlist_type_t {
|
||||||
|
|
||||||
struct playlist {
|
struct playlist {
|
||||||
enum playlist_type_t pl_type; /* This playlist's type. */
|
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. */
|
struct queue pl_queue; /* This playlist's queue of tracks. */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue