diff src/blist.c @ 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 87bd4d4ff499
children 9ee2542d1104
line wrap: on
line diff
--- 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);