soc.2008.xmpp: e110ccc4: * removing some g_strdup()s; I meant it ...

tfar at soc.pidgin.im tfar at soc.pidgin.im
Tue Jul 15 18:40:51 EDT 2008


-----------------------------------------------------------------
Revision: e110ccc4a43fd871f68f054c25c4f4420c5114d7
Ancestor: 5bea85ed5cacfcd03bbc34b9ee3b1f235f392842
Author: tfar at soc.pidgin.im
Date: 2008-07-15T22:16:26
Branch: im.pidgin.soc.2008.xmpp
URL: http://d.pidgin.im/viewmtn/revision/info/e110ccc4a43fd871f68f054c25c4f4420c5114d7

Modified files:
        libpurple/protocols/jabber/caps.c

ChangeLog: 

* removing some g_strdup()s; I meant it too good

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/caps.c	acd1357fbcdc19cb7ad0dbb9c9c1c14f35c71e02
+++ libpurple/protocols/jabber/caps.c	716500081f1b5e436b8ed4ed09f0da2150e2122c
@@ -201,22 +201,22 @@ static void jabber_caps_store_client(gpo
 	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)) {


More information about the Commits mailing list