changeset 14682:9b4268984921

[gaim-migrate @ 17434] I have a blist.xml with a lot of buddy_icon's set to files that don't exist. This could be the cause, but I doubt it. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 06 Oct 2006 00:10:34 +0000
parents 2c1781ea074c
children a8c2af13b96d
files libgaim/buddyicon.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/buddyicon.c	Thu Oct 05 23:24:00 2006 +0000
+++ b/libgaim/buddyicon.c	Fri Oct 06 00:10:34 2006 +0000
@@ -261,6 +261,9 @@
 	{
 		gaim_debug_error("buddyicon", "Unable to create file %s: %s\n",
 						 filename, strerror(errno));
+		g_free(filename);
+		g_free(random);
+		return;
 	}
 
 	g_free(filename);