# HG changeset patch # User Yoshiki Yazawa # Date 1197031249 -32400 # Node ID 22a86d4671b573cf6cdecd3a1953d56438cde345 # Parent 155e8893e05c957c8df8923f99f3b3a1dd56f4c6 fix a memory leak. diff -r 155e8893e05c -r 22a86d4671b5 src/audacious/util.c --- 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.