# HG changeset patch # User Evan Schoenberg # Date 1178388467 0 # Node ID 84e2c7cc590affd664ccdac6ad0b1b181f16ee75 # Parent 5ade68b6a4104a9b63fe4ac43fba9cf10b8eadd6 Free nombre as soon as we're done using it, for clarity diff -r 5ade68b6a410 -r 84e2c7cc590a libpurple/protocols/oscar/oscar.c --- 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; }