[sound-juicer] Don't leak AlbumDetails::artists and TrackDetails::artists
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer] Don't leak AlbumDetails::artists and TrackDetails::artists
- Date: Sat, 16 Jun 2012 11:29:19 +0000 (UTC)
commit eff5bb9e4e3799d6b4da8dcb2bfc477bc94bd1ca
Author: Christophe Fergeau <cfergeau redhat com>
Date: Sat Jun 16 13:16:18 2012 +0200
Don't leak AlbumDetails::artists and TrackDetails::artists
Issue found with valgrind
libjuicer/sj-structures.c | 3 ++-
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]