Mercurial > pidgin.yaz
changeset 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 | 4df67bf416be |
children | 4de7e6c4e5be fd19e7efad68 |
files | libpurple/util.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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: