changeset 15230:c42968092d15

[gaim-migrate @ 18019] gg: Fixed double free() in ggp_pubdir_handle_info(). committer: Tailor Script <tailor@pidgin.im>
author Bartoz Oler <bartosz@pidgin.im>
date Sun, 17 Dec 2006 21:12:18 +0000
parents 192c66c0c2cb
children 4f0575a9264d
files libgaim/protocols/gg/gg.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/gg/gg.c	Sun Dec 17 20:14:41 2006 +0000
+++ b/libgaim/protocols/gg/gg.c	Sun Dec 17 21:12:18 2006 +0000
@@ -1046,13 +1046,11 @@
 
 	val = ggp_buddy_get_name(gc, ggp_str_to_uin(who));
 	g_free(who);
-	who = val;
 
 /*	val = gaim_strdup_withhtml(text->str); */
 
-	gaim_notify_userinfo(gc, who, user_info, ggp_sr_close_cb, form);
+	gaim_notify_userinfo(gc, val, user_info, ggp_sr_close_cb, form);
 	g_free(val);
-	g_free(who);
 	gaim_notify_user_info_destroy(user_info);
 }
 /* }}} */