changeset 14786:6d0ca3a1d464

[gaim-migrate @ 17550] Fix a leak, patch by Henning Norn (1580758). committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Thu, 19 Oct 2006 22:17:30 +0000
parents 36b55cb22bc2
children 584da235633e
files gtk/plugins/gevolution/gevolution.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/plugins/gevolution/gevolution.c	Thu Oct 19 22:02:25 2006 +0000
+++ b/gtk/plugins/gevolution/gevolution.c	Thu Oct 19 22:17:30 2006 +0000
@@ -79,7 +79,7 @@
 	{
 		GaimConnection *gc = (GaimConnection *)l->data;
 		GaimAccount *account = gaim_connection_get_account(gc);
-		char *me = g_strdup(gaim_normalize(account, gaim_account_get_username(account)));
+		char *me;
 
 		if (strcmp(gaim_account_get_protocol_id(account), prpl_id))
 			continue;
@@ -87,6 +87,7 @@
 		if (!gaim_account_get_bool(account, "gevo-autoadd", FALSE))
 			continue;
 
+		me = g_strdup(gaim_normalize(account, gaim_account_get_username(account)));
 		for (l2 = ims; l2 != NULL; l2 = l2->next)
 		{
 			if (gaim_find_buddy(account, l2->data) != NULL ||