Mercurial > pidgin.yaz
diff libpurple/util.c @ 18560:481eb37730bf
This was crashing for me when writing a system message when logging
in. url was null and apparently g_string_free(NULL, TRUE) crashes
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Wed, 18 Jul 2007 06:32:00 +0000 |
| parents | 274a08f56ea6 |
| children | 321658bf0e03 |
line wrap: on
line diff
--- 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:
