diff libpurple/protocols/oscar/oscar.c @ 26314:1977e930ab03

Make sure we free itmsurl when showing the info window for a buddy with an itunes music store url
author Mark Doliner <mark@kingant.net>
date Fri, 27 Mar 2009 09:48:25 +0000
parents a2a03df86f59
children 0a1f7bff1ddd
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Fri Mar 27 09:44:36 2009 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Fri Mar 27 09:48:25 2009 +0000
@@ -870,11 +870,11 @@
 		if (itmsurl) {
 			tmp = g_strdup_printf("<a href=\"%s\">%s</a>",
 								  itmsurl, message);
-			g_free(itmsurl);
 			g_free(message);
 			message = tmp;
 		}
 	}
+	g_free(itmsurl);
 
 	if (is_away && message) {
 		tmp = purple_str_sub_away_formatters(message, purple_account_get_username(account));