diff options
Diffstat (limited to 'libjuicer/sj-structures.c')
-rw-r--r-- | libjuicer/sj-structures.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libjuicer/sj-structures.c b/libjuicer/sj-structures.c index 3dc29c3..318a180 100644 --- a/libjuicer/sj-structures.c +++ b/libjuicer/sj-structures.c @@ -65,6 +65,7 @@ void album_details_free(AlbumDetails *album) g_free (album->lyrics_url); g_free (album->country); g_free (album->type); + g_list_foreach (album->labels, (GFunc)label_details_free, NULL); g_list_foreach (album->artists, (GFunc)artist_details_free, NULL); g_list_free (album->artists); g_free (album); @@ -84,3 +85,13 @@ void artist_details_free (ArtistDetails *artist) g_free (artist->joinphrase); g_free (artist); } + +/* + * Free a LabelDetails + */ +void label_details_free (LabelDetails *label) +{ + g_free (label->name); + g_free (label->sortname); + g_free (label); +} |