# HG changeset patch # User Richard Laager # Date 1180936331 0 # Node ID a7a8e4245b33e42919f63f847537e99138f6af44 # Parent 0f4a562b38d155881813ad3efcef1a50fcc6f07b Remove needless string duplication. diff -r 0f4a562b38d1 -r a7a8e4245b33 libpurple/util.c --- a/libpurple/util.c Mon Jun 04 04:50:02 2007 +0000 +++ b/libpurple/util.c Mon Jun 04 05:52:11 2007 +0000 @@ -1594,11 +1594,13 @@ } g_list_free(tags); if(xhtml_out) - *xhtml_out = g_strdup(xhtml->str); + *xhtml_out = g_string_free(xhtml, FALSE); + else + g_string_free(xhtml, TRUE); if(plain_out) - *plain_out = g_strdup(plain->str); - g_string_free(xhtml, TRUE); - g_string_free(plain, TRUE); + *plain_out = g_string_free(plain, FALSE); + else + g_string_free(plain, TRUE); } /* The following are probably reasonable changes: