pidgin: b0b06969: La la la, oops. HanzZ pointed this (leak...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Wed Sep 2 10:40:57 EDT 2009


-----------------------------------------------------------------
Revision: b0b069693930fe066b4ca0af9b801dbc1f543f19
Ancestor: cb80871347fc6f79b6b8b31e853a9f84433ed1a9
Author: darkrain42 at pidgin.im
Date: 2009-09-02T14:32:44
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b0b069693930fe066b4ca0af9b801dbc1f543f19

Modified files:
        libpurple/blist.c

ChangeLog: 

La la la, oops. HanzZ pointed this (leak) out.

-------------- next part --------------
============================================================
--- libpurple/blist.c	089822c941a41089f352836b93aafd9e822d0fed
+++ libpurple/blist.c	25c0a901a1503b70830120fc894fbabe0329973d
@@ -1118,7 +1118,7 @@ void purple_blist_alias_buddy(PurpleBudd
 	old_alias = buddy->alias;
 
 	if ((new_alias != NULL) && (*new_alias != '\0'))
-		buddy->alias = g_strdup(alias);
+		buddy->alias = new_alias;
 	else {
 		buddy->alias = NULL;
 		g_free(new_alias); /* could be "\0" */


More information about the Commits mailing list