summaryrefslogtreecommitdiff
path: root/libjuicer
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-06-16 13:16:18 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2012-06-16 13:17:02 +0200
commiteff5bb9e4e3799d6b4da8dcb2bfc477bc94bd1ca (patch)
tree84abe7c804518bfde063992686362a274fc4d4b1 /libjuicer
parentb5e6c0bc35bcff70f6a3a538fdfb2a35e315c935 (diff)
Don't leak AlbumDetails::artists and TrackDetails::artists
Issue found with valgrind
Diffstat (limited to 'libjuicer')
-rw-r--r--libjuicer/sj-structures.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjuicer/sj-structures.c b/libjuicer/sj-structures.c
index 89fe77e..3dc29c3 100644
--- a/libjuicer/sj-structures.c
+++ b/libjuicer/sj-structures.c
@@ -38,6 +38,7 @@ void track_details_free(TrackDetails *track)
g_free (track->artist_id);
g_free (track->artist_sortname);
g_list_foreach (track->artists, (GFunc)artist_details_free, NULL);
+ g_list_free (track->artists);
g_free (track);
}
@@ -65,7 +66,7 @@ void album_details_free(AlbumDetails *album)
g_free (album->country);
g_free (album->type);
g_list_foreach (album->artists, (GFunc)artist_details_free, NULL);
-
+ g_list_free (album->artists);
g_free (album);
}