Mercurial > audlegacy
changeset 729:f5457b6cdc0e trunk
[svn] - memleak fix (noticed by HopeSeekr @ efnet #xmule)
author | nenolod |
---|---|
date | Mon, 27 Feb 2006 08:32:57 -0800 |
parents | e39735f0b2f7 |
children | 1b3adae291b3 |
files | audacious/main.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/audacious/main.c Mon Feb 27 07:29:53 2006 -0800 +++ b/audacious/main.c Mon Feb 27 08:32:57 2006 -0800 @@ -411,7 +411,11 @@ static void bmp_init_paths(void) { - bmp_paths[BMP_PATH_USER_DIR] = g_build_filename(g_get_home_dir(), BMP_RCPATH, NULL); + gchar *home_dir = g_get_home_dir(); + + bmp_paths[BMP_PATH_USER_DIR] = g_build_filename(home_dir, BMP_RCPATH, NULL); + + g_free(home_dir); bmp_paths[BMP_PATH_USER_PLUGIN_DIR] = USER_PATH(BMP_USER_PLUGIN_DIR_BASENAME); bmp_paths[BMP_PATH_USER_SKIN_DIR] = USER_PATH(BMP_SKIN_DIR_BASENAME);