changeset 20983:64644b98c20c

Avoid unnecessary alloc/free.
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 17 Oct 2007 18:20:41 +0000
parents cb5cbe04a340
children 5699d5cb0028
files libpurple/protocols/msn/msnutils.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/msnutils.c	Wed Oct 17 18:13:33 2007 +0000
+++ b/libpurple/protocols/msn/msnutils.c	Wed Oct 17 18:20:41 2007 +0000
@@ -445,10 +445,9 @@
 	*attributes = g_strdup_printf("FN=%s; EF=%s; CO=%s; PF=0; RL=%c",
 								  encode_spaces(fontface),
 								  fonteffect, fontcolor, direction);
-	*message = g_strdup(msg);
+	*message = msg;
 
 	g_free(fontface);
-	g_free(msg);
 }
 
 void