im.pidgin.pidgin: f5f5f4abc2a4249107ac9ca7b80480c5cc5d8562

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Wed Jan 16 01:35:45 EST 2008


-----------------------------------------------------------------
Revision: f5f5f4abc2a4249107ac9ca7b80480c5cc5d8562
Ancestor: 88b3b37295912c156c79eb9b1aece31e02fc9d00
Author: rekkanoryo at pidgin.im
Date: 2008-01-16T06:29:52
Branch: im.pidgin.pidgin

Modified files:
        libpurple/protocols/yahoo/yahoo_aliases.c

ChangeLog: 

Get rid of an unnecessary allocation.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo_aliases.c	a85386747ce002282ac12c68c51943767099f804
+++ libpurple/protocols/yahoo/yahoo_aliases.c	da61ec40f8f8be27ba46f81df66d309c2e3abfde
@@ -254,7 +254,7 @@ yahoo_update_alias(PurpleConnection *gc,
 	cb->gc = gc;
 
 	/*  Build all the info to make the web request */
-	url = g_strdup(yd->jp? YAHOOJP_ALIAS_UPDATE_URL: YAHOO_ALIAS_UPDATE_URL);
+	url = yd->jp? YAHOOJP_ALIAS_UPDATE_URL: YAHOO_ALIAS_UPDATE_URL;
 	purple_url_parse(url, &webaddress, &inttmp, &webpage, &strtmp, &strtmp);
 
 	if (yd->jp) {
@@ -289,7 +289,6 @@ yahoo_update_alias(PurpleConnection *gc,
 	}
 
 	g_free(content);
-	g_free(url);
 	g_free(request);
 }
 


More information about the Commits mailing list