changeset 793:3c4bcd9b8719 trunk

[svn] - leak fix
author nenolod
date Fri, 03 Mar 2006 21:16:35 -0800
parents ddb6e5dac908
children 0892e7d48925
files Plugins/Input/aac/src/libmp4.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/aac/src/libmp4.c	Fri Mar 03 20:57:36 2006 -0800
+++ b/Plugins/Input/aac/src/libmp4.c	Fri Mar 03 21:16:35 2006 -0800
@@ -269,7 +269,10 @@
 		MP4GetMetadataGenre(mp4file, &input->genre);
 
 		if (tmpval)
+		{
 			input->year = atoi(tmpval);
+			free(tmpval);
+		}
 
 		input->file_name = g_path_get_basename(filename);
 		input->file_path = g_path_get_dirname(filename);
@@ -277,6 +280,10 @@
 
 		title = xmms_get_titlestring(xmms_get_gentitle_format(), input);
 
+		free (input->track_name);
+		free (input->album_name);
+		free (input->performer);
+		free (input->genre);
 		free (input->file_name);
 		free (input->file_path);
 		free (input);