Mercurial > pidgin
changeset 27673:19d283331b9d
Fix a small leak and remove a duplicate xmlnode_set_attrib.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Wed, 22 Jul 2009 19:48:51 +0000 |
parents | 99baf778e0b9 |
children | 91f8f3392e20 |
files | libpurple/protocols/jabber/google.c |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c Wed Jul 22 07:31:40 2009 +0000 +++ b/libpurple/protocols/jabber/google.c Wed Jul 22 19:48:51 2009 +0000 @@ -982,21 +982,17 @@ PurpleAccount *account = purple_connection_get_account(js->gc); GSList *list = account->deny; const char *jid = xmlnode_get_attrib(item, "jid"); - char *jid_norm = g_strdup(jabber_normalize(account, jid)); + char *jid_norm = jabber_normalize(account, jid); while (list) { if (!strcmp(jid_norm, (char*)list->data)) { xmlnode_set_attrib(query, "xmlns:gr", "google:roster"); + xmlnode_set_attrib(query, "gr:ext", "2"); xmlnode_set_attrib(item, "gr:t", "B"); - xmlnode_set_attrib(query, "xmlns:gr", "google:roster"); - xmlnode_set_attrib(query, "gr:ext", "2"); return; } list = list->next; } - - g_free(jid_norm); - } gboolean jabber_google_roster_incoming(JabberStream *js, xmlnode *item)