changeset 13149:18e621aa8a43

[gaim-migrate @ 15512] Rest of SF Patch #1414323 from Sadrul Fixes SF Bug #1414023 committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 07 Feb 2006 02:49:56 +0000
parents cb53596ff3d2
children d4698cf18986
files src/privacy.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/privacy.c	Tue Feb 07 02:37:58 2006 +0000
+++ b/src/privacy.c	Tue Feb 07 02:49:56 2006 +0000
@@ -156,15 +156,16 @@
 	if (l == NULL)
 		return FALSE;
 
-	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;