changeset 23229:a4bfb7514607

Two leak fixes for purple_icqinfo()
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 27 May 2008 21:47:41 +0000
parents b1e219ed4e1c
children fda698fb2d1f de8f7e6a707a
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Tue May 27 21:41:29 2008 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Tue May 27 21:47:41 2008 +0000
@@ -3773,8 +3773,7 @@
 	if ((info->age > 0) && (info->age < 255)) {
 		char age[5];
 		snprintf(age, sizeof(age), "%hhd", info->age);
-		purple_notify_user_info_add_pair(user_info,
-													_("Age"), age);
+		purple_notify_user_info_add_pair(user_info, _("Age"), age);
 	}
 	if (info->personalwebpage && info->personalwebpage[0] && (utf8 = oscar_utf8_try_convert(gc->account, info->personalwebpage))) {
 		buf = g_strdup_printf("<a href=\"%s\">%s</a>", utf8, utf8);
@@ -3798,8 +3797,8 @@
 				utf8 && *utf8 ? utf8 : "");
 		g_free(utf8);
 
-		oscar_user_info_convert_and_add(account,
-				user_info, _("Status"), tmp);
+		purple_notify_user_info_add_pair(user_info, _("Status"), tmp);
+		g_free(tmp);
 	}
 
 	oscar_user_info_convert_and_add(account, user_info, _("Additional Information"), info->info);
@@ -3830,8 +3829,9 @@
 		
 		if (info->workwebpage && info->workwebpage[0] && (utf8 = oscar_utf8_try_convert(gc->account, info->workwebpage))) {
 			char *webpage = g_strdup_printf("<a href=\"%s\">%s</a>", utf8, utf8);
-			oscar_user_info_convert_and_add(account, user_info, _("Web Page"), webpage);
+			purple_notify_user_info_add_pair(user_info, _("Web Page"), webpage);
 			g_free(webpage);
+			g_free(utf8);
 		}
 	}