changeset 16883:84e2c7cc590a

Free nombre as soon as we're done using it, for clarity
author Evan Schoenberg <evan.s@dreskin.net>
date Sat, 05 May 2007 18:07:47 +0000
parents 5ade68b6a410
children 58f58027608e
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Sat May 05 18:05:48 2007 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Sat May 05 18:07:47 2007 +0000
@@ -5105,6 +5105,8 @@
 		nombre = g_strdup(sn);
 
 	dialog_msg = g_strdup_printf(_("The user %s has given you permission to add you to their buddy list.  Do you want to add them?"), nombre);
+	g_free(nombre);
+
 	data = g_new(struct name_data, 1);
 	data->gc = gc;
 	data->name = g_strdup(sn);
@@ -5116,9 +5118,7 @@
 						data,
 						G_CALLBACK(purple_icq_buddyadd),
 						G_CALLBACK(oscar_free_name_data));
-
 	g_free(dialog_msg);
-	g_free(nombre);
 
 	return 1;
 }