Mercurial > pidgin
diff libpurple/util.c @ 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 | 4a8366502f01 |
children | 89c7be36fd61 |
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; }