From: <dat...@us...> - 2006-09-26 00:28:08
|
Revision: 17352 http://svn.sourceforge.net/gaim/?rev=17352&view=rev Author: datallah Date: 2006-09-25 17:28:02 -0700 (Mon, 25 Sep 2006) Log Message: ----------- Avoid allocating, duping and deallocating. Modified Paths: -------------- trunk/libgaim/protocols/jabber/parser.c Modified: trunk/libgaim/protocols/jabber/parser.c =================================================================== --- trunk/libgaim/protocols/jabber/parser.c 2006-09-25 21:14:24 UTC (rev 17351) +++ trunk/libgaim/protocols/jabber/parser.c 2006-09-26 00:28:02 UTC (rev 17352) @@ -51,12 +51,12 @@ if(!strcmp(attributes[i], "version") && !strcmp(attrib, "1.0")) { js->protocol_version = JABBER_PROTO_1_0; + g_free(attrib); } else if(!strcmp(attributes[i], "id")) { if(js->stream_id) g_free(js->stream_id); - js->stream_id = g_strdup(attrib); + js->stream_id = attrib; } - g_free(attrib); } if(js->protocol_version == JABBER_PROTO_0_9) js->auth_type = JABBER_AUTH_IQ_AUTH; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |