changeset 2442:1286f65395d7

string arrays should be freed with g_strfreev()
author Tomasz Mon <desowin@gmail.com>
date Sat, 08 Mar 2008 10:17:53 +0100
parents 166397a7efe1
children 32d4d5f7020b
files src/scrobbler/scrobbler.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/scrobbler/scrobbler.c	Sat Mar 08 09:57:38 2008 +0100
+++ b/src/scrobbler/scrobbler.c	Sat Mar 08 10:17:53 2008 +0100
@@ -947,11 +947,11 @@
             free(artist);
             free(title);
             free(album);
-            g_free(entry);
             i++;
         }
+        g_strfreev(entry);
     }
-    g_free(values);
+    g_strfreev(values);
     g_free(cache);
     pdebug("Done loading cache.", DEBUG);
 }