changeset 982:287d4eb3ca27 trunk

[svn] - Let's not leave mp4 files open after reading their tags :P
author nhjm449
date Fri, 28 Apr 2006 22:43:09 -0700
parents 00e3b13188c1
children 6cc5538851d6
files Plugins/Input/aac/src/fileinfo.c Plugins/Input/aac/src/libmp4.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/aac/src/fileinfo.c	Fri Apr 28 11:21:33 2006 -0700
+++ b/Plugins/Input/aac/src/fileinfo.c	Fri Apr 28 22:43:09 2006 -0700
@@ -412,7 +412,8 @@
         gtk_entry_set_text(GTK_ENTRY(artist_entry), audmp4_get_artist(mp4file));
         gtk_entry_set_text(GTK_ENTRY(title_entry), audmp4_get_title(mp4file));
         gtk_entry_set_text(GTK_ENTRY(year_entry), g_strdup_printf("%d", audmp4_get_year(mp4file)));
-	gtk_entry_set_text(GTK_ENTRY(album_entry), audmp4_get_album(mp4file));
+        gtk_entry_set_text(GTK_ENTRY(album_entry), audmp4_get_album(mp4file));
+        MP4Close(mp4file);
     }
 
     gtk_widget_show_all(window);
--- a/Plugins/Input/aac/src/libmp4.c	Fri Apr 28 11:21:33 2006 -0700
+++ b/Plugins/Input/aac/src/libmp4.c	Fri Apr 28 22:43:09 2006 -0700
@@ -305,6 +305,8 @@
 		free (input->file_name);
 		free (input->file_path);
 		free (input);
+
+		MP4Close(mp4file);
 	}
 
 	if (!title)