changeset 850:f46eed6af263 trunk

[svn] - fix free() stuff properly
author nenolod
date Sat, 18 Mar 2006 13:32:39 -0800
parents 2c4b35f48e51
children c9d70a699f80
files Plugins/General/scrobbler/tags/tags.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/General/scrobbler/tags/tags.c	Sat Mar 18 13:32:01 2006 -0800
+++ b/Plugins/General/scrobbler/tags/tags.c	Sat Mar 18 13:32:39 2006 -0800
@@ -778,7 +778,17 @@
 	if(meta->wma != NULL)
 		freeWMA(meta->wma);
 	if(meta->id3v1 != NULL)
+	{
 		freeID3v1(meta->id3v1);
+
+		/* These only need to be freed if ID3v1 --nenolod */
+		if (meta->track != NULL)
+			free(meta->track);
+		if (meta->genre != NULL)
+			free(meta->genre);
+		if (meta->mb != NULL)
+			free(meta->mb);
+	}
 	if(meta->id3v2 != NULL)
 		freeID3v2(meta->id3v2);
 	if(meta->ape != NULL)