rpms/gaim/devel gaim-1.5.0-msn-block-crash.patch,NONE,1.1

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Sun Apr 9 00:57:20 UTC 2006


Author: wtogami

Update of /cvs/dist/rpms/gaim/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv16325

Added Files:
	gaim-1.5.0-msn-block-crash.patch 
Log Message:
add patch


gaim-1.5.0-msn-block-crash.patch:
 privacy.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

--- NEW FILE gaim-1.5.0-msn-block-crash.patch ---
===================================================================
RCS file: /cvsroot/gaim/gaim/src/privacy.c,v
retrieving revision 1.16
retrieving revision 1.18
diff -u -r1.16 -r1.18
--- gaim/gaim/src/privacy.c	2005/07/17 23:36:33	1.16
+++ gaim/gaim/src/privacy.c	2006/02/07 02:49:56	1.18
@@ -85,8 +85,8 @@
 	if (l == NULL)
 		return FALSE;
 
-	account->permit = g_slist_remove(account->permit, l->data);
 	g_free(l->data);
+	account->permit = g_slist_delete_link(account->permit, l);
 
 	if (!local_only && gaim_account_is_connected(account))
 		serv_rem_permit(gaim_account_get_connection(account), who);
@@ -156,15 +156,16 @@
 	if (l == NULL)
 		return FALSE;
 
-	account->deny = g_slist_remove(account->deny, l->data);
-	g_free(l->data);
+	name = l->data;
+	account->deny = g_slist_delete_link(account->deny, l);
 
 	if (!local_only && gaim_account_is_connected(account))
-		serv_rem_deny(gaim_account_get_connection(account), who);
+		serv_rem_deny(gaim_account_get_connection(account), name);
 
 	if (privacy_ops != NULL && privacy_ops->deny_removed != NULL)
-		privacy_ops->deny_removed(account, who);
+		privacy_ops->deny_removed(account, name);
 
+	g_free(name);
 	gaim_blist_schedule_save();
 
 	return TRUE;




More information about the fedora-cvs-commits mailing list