Mercurial > pidgin
changeset 25034:6606566f15ff
* removing some g_strdup()s; I meant it too good
author | Tobias Markmann <tfar@soc.pidgin.im> |
---|---|
date | Tue, 15 Jul 2008 22:16:26 +0000 |
parents | 324cd6544a7b |
children | affaa4c4836e |
files | libpurple/protocols/jabber/caps.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.c Tue Jul 15 21:26:51 2008 +0000 +++ b/libpurple/protocols/jabber/caps.c Tue Jul 15 22:16:26 2008 +0000 @@ -201,22 +201,22 @@ xmlnode *client = xmlnode_new_child(root,"client"); GList *iter; - xmlnode_set_attrib(client,"node",g_strdup(clientinfo->node)); - xmlnode_set_attrib(client,"ver",g_strdup(clientinfo->ver)); - xmlnode_set_attrib(client,"hash",g_strdup(clientinfo->hash)); + xmlnode_set_attrib(client,"node", clientinfo->node); + xmlnode_set_attrib(client,"ver", clientinfo->ver); + xmlnode_set_attrib(client,"hash", clientinfo->hash); for(iter = props->identities; iter; iter = g_list_next(iter)) { JabberCapsIdentity *id = iter->data; xmlnode *identity = xmlnode_new_child(client, "identity"); - xmlnode_set_attrib(identity, "category", g_strdup(id->category)); - xmlnode_set_attrib(identity, "type", g_strdup(id->type)); + xmlnode_set_attrib(identity, "category", id->category); + xmlnode_set_attrib(identity, "type", id->type); if (id->name) - xmlnode_set_attrib(identity, "name", g_strdup(id->name)); + xmlnode_set_attrib(identity, "name", id->name); } for(iter = props->features; iter; iter = g_list_next(iter)) { const char *feat = iter->data; xmlnode *feature = xmlnode_new_child(client, "feature"); - xmlnode_set_attrib(feature, "var", g_strdup(feat)); + xmlnode_set_attrib(feature, "var", feat); } for(iter = props->forms; iter; iter = g_list_next(iter)) {