commit a128e5c34326d219a04b1482682b66e67f93062b
Author: Christophe Fergeau <cferg...@mandriva.com>
Date:   Wed Jun 16 17:48:01 2010 +0200

    fix memory leak in iTunesStats parsing

 src/itdb_itunesdb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index 8ceaad6..cdc2685 100644
--- a/src/itdb_itunesdb.c
+++ b/src/itdb_itunesdb.c
@@ -1032,7 +1032,7 @@ static gboolean itunesstats_read (FImport *fimp, 
FContents *cts)
     seek = 6;
     for (i=0; i<entry_num; ++i)
     {
-       struct playcount *playcount = g_new0 (struct playcount, 1);
+       struct playcount *playcount;
        guint32 entry_length = get24lint (cts, seek+0);
        CHECK_ERROR (fimp, FALSE);
        if (entry_length < 18)
@@ -1044,7 +1044,7 @@ static gboolean itunesstats_read (FImport *fimp, 
FContents *cts)
                         cts->filename, entry_length);
            return FALSE;
        }
-
+       playcount = g_new0 (struct playcount, 1);
        playcounts = g_list_prepend (playcounts, playcount);
        /* NOTE:
         *

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to