changeset 12860:a35edda11737

[gaim-migrate @ 15211] SF Patch #1404712 from Glauber de Oliveira Costa Fixes SF Bug #1403876: "Gaim cvs segfaults if user is deleted after status change" committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Fri, 13 Jan 2006 17:33:17 +0000
parents 02e1ef5bc3d5
children 6cc43e23ad36
files COPYRIGHT src/blist.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Fri Jan 13 17:30:20 2006 +0000
+++ b/COPYRIGHT	Fri Jan 13 17:33:17 2006 +0000
@@ -57,6 +57,7 @@
 Felipe Contreras
 Alex Converse
 Irving Cordova
+Glauber de Oliveira Costa
 Adam Cowell
 Palmer Cox
 Jeramey Crawford
--- a/src/blist.c	Fri Jan 13 17:30:20 2006 +0000
+++ b/src/blist.c	Fri Jan 13 17:33:17 2006 +0000
@@ -1807,6 +1807,8 @@
 	GAIM_DBUS_UNREGISTER_POINTER(buddy);
 	g_free(buddy);
 
+	while (g_source_remove_by_user_data((gpointer *)buddy));
+
 	/* If the contact is empty then remove it */
 	if (!cnode->child)
 		gaim_blist_remove_contact(contact);