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