# HG changeset patch # User Ka-Hing Cheung # Date 1217644846 0 # Node ID 21e591b553399b76573e830a98d197a997fda132 # Parent 630ad95a854739c22b3245b73f515a14b5380d91 at least don't crash when we can't read whatever we are reading Ref #6468 diff -r 630ad95a8547 -r 21e591b55339 pidgin/gtksmiley.c --- 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)