changeset 31137:a786d893df2b

I don't believe there's any reason to duplicate this string.
author Mark Doliner <mark@kingant.net>
date Tue, 09 Feb 2010 01:55:36 +0000
parents 24f371e16a51
children cc6d733a192a
files libpurple/protocols/msn/msg.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/msg.c	Mon Feb 08 08:35:38 2010 +0000
+++ b/libpurple/protocols/msn/msg.c	Tue Feb 09 01:55:36 2010 +0000
@@ -816,7 +816,6 @@
 {
 	PurpleConnection *gc;
 	const char *body;
-	char *body_str;
 	char *body_enc;
 	char *body_final;
 	size_t body_len;
@@ -826,9 +825,7 @@
 	gc = cmdproc->session->account->gc;
 
 	body = msn_message_get_bin_data(msg, &body_len);
-	body_str = g_strndup(body, body_len);
-	body_enc = g_markup_escape_text(body_str, -1);
-	g_free(body_str);
+	body_enc = g_markup_escape_text(body, body_len);
 
 	passport = msg->remote_user;