Mercurial > pidgin.yaz
changeset 8549:1a016d979ce0
[gaim-migrate @ 9291]
if we can't write a file, we certainly shouldn't toast the file we have
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 01 Apr 2004 21:24:17 +0000 |
parents | fae482a76700 |
children | 52dca2f38956 |
files | src/account.c src/blist.c src/pounce.c src/prefs.c src/status.c |
diffstat | 5 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/account.c Thu Apr 01 19:25:11 2004 +0000 +++ b/src/account.c Thu Apr 01 21:24:17 2004 +0000 @@ -1395,6 +1395,8 @@ else { gaim_debug(GAIM_DEBUG_ERROR, "accounts", "Unable to write %s\n", filename); + g_free(filename); + return; } filename_real = g_build_filename(user_dir, "accounts.xml", NULL);
--- a/src/blist.c Thu Apr 01 19:25:11 2004 +0000 +++ b/src/blist.c Thu Apr 01 21:24:17 2004 +0000 @@ -2493,6 +2493,8 @@ } else { gaim_debug(GAIM_DEBUG_ERROR, "blist save", "Unable to write %s\n", filename); + g_free(filename); + return; } filename_real = g_build_filename(user_dir, "blist.xml", NULL);
--- a/src/pounce.c Thu Apr 01 19:25:11 2004 +0000 +++ b/src/pounce.c Thu Apr 01 21:24:17 2004 +0000 @@ -882,6 +882,8 @@ else { gaim_debug(GAIM_DEBUG_ERROR, "pounces", "Unable to write %s\n", filename); + g_free(filename); + return; } filename_real = g_build_filename(user_dir, "pounces.xml", NULL);