Mercurial > pidgin.yaz
changeset 20969:17ee8c81c99b
Only free the GString "alt" if it's non-null. This was causing an
assertion failure when either sending or receiving a direct IM
(or maybe both) with HTML logging on (and maybe other types of
logging--I didn't check).
Fixes #3514
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 16 Oct 2007 07:31:41 +0000 |
parents | d59fb44a0617 |
children | 84c7f5cdb8f3 73ef026191e7 |
files | libpurple/util.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/util.c Tue Oct 16 07:24:25 2007 +0000 +++ b/libpurple/util.c Tue Oct 16 07:31:41 2007 +0000 @@ -1515,8 +1515,8 @@ plain = g_string_append(plain, alt->str); if(!src && xhtml) xhtml = g_string_append(xhtml, alt->str); + g_string_free(alt, TRUE); } - g_string_free(alt, TRUE); g_string_free(src, TRUE); continue; }