im.pidgin.pidgin.custom_smiley: f858b999c7caa321cb17a469b02054b164e532e5

sadrul at pidgin.im sadrul at pidgin.im
Tue Feb 19 15:06:11 EST 2008


-----------------------------------------------------------------
Revision: f858b999c7caa321cb17a469b02054b164e532e5
Ancestor: 5af673379276a9bc4092b0a1b8beb7b16a655ce0
Author: sadrul at pidgin.im
Date: 2008-02-19T20:00:29
Branch: im.pidgin.pidgin.custom_smiley
URL: http://d.pidgin.im/viewmtn/revision/info/f858b999c7caa321cb17a469b02054b164e532e5

Modified files:
        pidgin/gtksmiley.c

ChangeLog: 

Make sure deleting one smiley doesn't accidentally delete a few others.

-------------- next part --------------
============================================================
--- pidgin/gtksmiley.c	4874e411310eb534afe724bae929508dc9314b69
+++ pidgin/gtksmiley.c	8d5eba22e44d86577fcd23e4b79bf2c94bfa8001
@@ -132,11 +132,11 @@ void pidgin_smiley_del_from_list(PurpleS
 			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)


More information about the Commits mailing list