changeset 6359:dfde69e105ae

[gaim-migrate @ 6863] Er, I forgot the function I was using returned a static buffer. Fixed. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 03 Aug 2003 02:21:39 +0000
parents 8ba58b296cc1
children 2e23ccbccdec
files src/protocols/msn/utils.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/utils.c	Sun Aug 03 02:16:15 2003 +0000
+++ b/src/protocols/msn/utils.c	Sun Aug 03 02:21:39 2003 +0000
@@ -146,15 +146,19 @@
 		}
 	}
 
-	cur = msn_url_decode(pre->str);
+	cur = g_strdup(msn_url_decode(pre->str));
 	g_string_free(pre, TRUE);
 
 	if (pre_ret != NULL)
 		*pre_ret = cur;
+	else
+		g_free(cur);
 
-	cur = msn_url_decode(post->str);
+	cur = g_strdup(msn_url_decode(post->str));
 	g_string_free(post, TRUE);
 
 	if (post_ret != NULL)
 		*post_ret = cur;
+	else
+		g_free(cur);
 }