# HG changeset patch # User Mark Doliner # Date 1192519901 0 # Node ID 17ee8c81c99bffb50aa293a394a1a053fef650cf # Parent d59fb44a061795e465ed12ea21a5cddc8a9bec04 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 diff -r d59fb44a0617 -r 17ee8c81c99b libpurple/util.c --- 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; }