# HG changeset patch # User Mark Doliner # Date 1184740320 0 # Node ID 481eb37730bf705088c98b5ddef157ba8299333d # Parent 4df67bf416bed4b7ff0101e4ff40aa80285cd824 This was crashing for me when writing a system message when logging in. url was null and apparently g_string_free(NULL, TRUE) crashes diff -r 4df67bf416be -r 481eb37730bf libpurple/util.c --- a/libpurple/util.c Wed Jul 18 06:28:11 2007 +0000 +++ b/libpurple/util.c Wed Jul 18 06:32:00 2007 +0000 @@ -1740,7 +1740,8 @@ *xhtml_out = g_string_free(xhtml, FALSE); if(plain_out) *plain_out = g_string_free(plain, FALSE); - g_string_free(url, TRUE); + if(url) + g_string_free(url, TRUE); } /* The following are probably reasonable changes: