changeset 4073:22a86d4671b5

fix a memory leak.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Fri, 07 Dec 2007 21:40:49 +0900
parents 155e8893e05c
children ea194fd79267
files src/audacious/util.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/util.c	Thu Dec 06 17:16:52 2007 +0100
+++ b/src/audacious/util.c	Fri Dec 07 21:40:49 2007 +0900
@@ -999,8 +999,9 @@
         path = g_strdup(playlist_name);
         tmp = strrchr(path, '/'); *tmp = '\0';
         tmp = g_build_filename(path, filename, NULL);
+        g_free(path); g_free(filename);
         uri = g_filename_to_uri(tmp, NULL, NULL);
-        g_free(tmp); g_free(filename);
+        g_free(tmp);
     }
     // case 3: filename is not raw full path nor uri, playlist path is not full path
     // just abort.