diff src/status.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 f24172f53650
children 4d05b6e9e9cd
line wrap: on
line diff
--- a/src/status.c	Thu Apr 01 19:25:11 2004 +0000
+++ b/src/status.c	Thu Apr 01 21:24:17 2004 +0000
@@ -232,6 +232,8 @@
 	else {
 		gaim_debug(GAIM_DEBUG_ERROR, "status", "Unable to write %s\n",
 				   filename);
+		g_free(filename);
+		return;
 	}
 
 	filename_real = g_build_filename(user_dir, "status.xml", NULL);