# HG changeset patch # User Sadrul Habib Chowdhury # Date 1203451229 0 # Node ID db31bbdf355b63a702cbf60086415afe654540ec # Parent 76fa930176959003c04aa1e3def3846ca204f521 Make sure deleting one smiley doesn't accidentally delete a few others. diff -r 76fa93017695 -r db31bbdf355b pidgin/gtksmiley.c --- a/pidgin/gtksmiley.c Tue Feb 19 19:57:09 2008 +0000 +++ b/pidgin/gtksmiley.c Tue Feb 19 20:00:29 2008 +0000 @@ -132,11 +132,11 @@ continue; destroy_gtksmiley(gtksmiley); - list = g_slist_delete_link(list, list); break; } - gtk_smileys = list; + if (list) + gtk_smileys = g_slist_delete_link(gtk_smileys, list); } void pidgin_smileys_init(void)