Mercurial > pidgin
comparison libpurple/protocols/oscar/oscar.c @ 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 | 84b7a625512e |
comparison
equal
deleted
inserted
replaced
16882:5ade68b6a410 | 16883:84e2c7cc590a |
---|---|
5103 nombre = g_strdup_printf("%s (%s)", sn, purple_buddy_get_alias_only(buddy)); | 5103 nombre = g_strdup_printf("%s (%s)", sn, purple_buddy_get_alias_only(buddy)); |
5104 else | 5104 else |
5105 nombre = g_strdup(sn); | 5105 nombre = g_strdup(sn); |
5106 | 5106 |
5107 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); | 5107 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); |
5108 g_free(nombre); | |
5109 | |
5108 data = g_new(struct name_data, 1); | 5110 data = g_new(struct name_data, 1); |
5109 data->gc = gc; | 5111 data->gc = gc; |
5110 data->name = g_strdup(sn); | 5112 data->name = g_strdup(sn); |
5111 data->nick = (buddy ? g_strdup(purple_buddy_get_alias_only(buddy)) : NULL); | 5113 data->nick = (buddy ? g_strdup(purple_buddy_get_alias_only(buddy)) : NULL); |
5112 | 5114 |
5114 PURPLE_DEFAULT_ACTION_NONE, | 5116 PURPLE_DEFAULT_ACTION_NONE, |
5115 purple_connection_get_account(gc), sn, NULL, | 5117 purple_connection_get_account(gc), sn, NULL, |
5116 data, | 5118 data, |
5117 G_CALLBACK(purple_icq_buddyadd), | 5119 G_CALLBACK(purple_icq_buddyadd), |
5118 G_CALLBACK(oscar_free_name_data)); | 5120 G_CALLBACK(oscar_free_name_data)); |
5119 | |
5120 g_free(dialog_msg); | 5121 g_free(dialog_msg); |
5121 g_free(nombre); | |
5122 | 5122 |
5123 return 1; | 5123 return 1; |
5124 } | 5124 } |
5125 | 5125 |
5126 static int purple_ssi_authrequest(OscarData *od, FlapConnection *conn, FlapFrame *fr, ...) { | 5126 static int purple_ssi_authrequest(OscarData *od, FlapConnection *conn, FlapFrame *fr, ...) { |