changeset 4825:682e91a2fcd3

[gaim-migrate @ 5150] Faceprint pointed out that memleaks were bad. I'm still not convinced, so later I'm going to remove all the calls to "free" and "g_free" and see what happens. Hands on the aaltar for a charming spell (Be sincere with persuasion) Go ask your Goddess if you've served her well (She'll be climbing higher now) committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 18 Mar 2003 17:51:50 +0000
parents d544c32dcf19
children e6654fab588b
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Tue Mar 18 17:30:07 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Tue Mar 18 17:51:50 2003 +0000
@@ -2991,11 +2991,13 @@
 	struct buddyinfo *bi = g_hash_table_lookup(od->buddyinfo, normalize(b->name));
 
 	if (bi) {
+		gchar *yay;
 		char *caps = caps_string(bi->caps);
 		char *tstr = sec_to_text(time(NULL) - bi->signon);
-		return g_strdup_printf(_("<b>Logged In:</b> %s%s%s"), 
-				       tstr, 
+		yay = g_strdup_printf(_("<b>Logged In:</b> %s%s%s"), tstr, 
 				       caps ? _("\n<b>Capabilities:</b> ") : "", caps ? caps : "");
+		free(tstr);
+		return yay;
 	} else {
 		return NULL;
 	}