[tracker/cleanup-media-art] squash this



commit 6cf74a4e776a1d43133467d39ce96d43f73e16e6
Author: Philip Van Hoof <philip codeminded be>
Date:   Wed May 18 14:15:56 2011 +0200

    squash this

 src/libtracker-miner/tracker-albumart.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-albumart.c b/src/libtracker-miner/tracker-albumart.c
index 5711160..2e2620b 100644
--- a/src/libtracker-miner/tracker-albumart.c
+++ b/src/libtracker-miner/tracker-albumart.c
@@ -105,12 +105,13 @@ on_query_finished (GObject      *source_object,
 			g_message ("Removing media-art file %s: no album exists that has "
 			           "more than one song for this media-art cache", name);
 			to_remove = g_list_prepend (to_remove, (gpointer) full);
+		} else {
+			g_free (full);
 		}
-
-		g_free (full);
 	}
 
 	g_list_foreach (to_remove, (GFunc) g_unlink, NULL);
+	g_list_foreach (to_remove, (GFunc) g_free, NULL);
 	g_list_free (to_remove);
 
 on_error:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]