changeset 23682:21e591b55339

at least don't crash when we can't read whatever we are reading Ref #6468
author Ka-Hing Cheung <khc@hxbc.us>
date Sat, 02 Aug 2008 02:40:46 +0000
parents 630ad95a8547
children 1c50f12b1c52
files pidgin/gtksmiley.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtksmiley.c	Fri Aug 01 21:36:48 2008 +0000
+++ b/pidgin/gtksmiley.c	Sat Aug 02 02:40:46 2008 +0000
@@ -275,7 +275,8 @@
 			g_free(buffer);
 		}
 		emoticon = purple_smiley_new_from_file(entry, s->filename);
-		pidgin_smiley_add_to_list(emoticon);
+		if (emoticon)
+			pidgin_smiley_add_to_list(emoticon);
 	}
 
 	if (smiley_manager != NULL)