# HG changeset patch # User Mark Doliner # Date 1151890791 0 # Node ID 6c907830a45f7fc98c3beb998f21400fdff06caa # Parent 8264f52a11429df7d9fadd2c4c259ce42962708d [gaim-migrate @ 16408] Get rid of an assertion failure that I hit committer: Tailor Script diff -r 8264f52a1142 -r 6c907830a45f src/protocols/bonjour/bonjour.c --- a/src/protocols/bonjour/bonjour.c Mon Jul 03 00:37:41 2006 +0000 +++ b/src/protocols/bonjour/bonjour.c Mon Jul 03 01:39:51 2006 +0000 @@ -556,7 +556,7 @@ #endif /* Try to figure out a good host name to use */ - /* TODO: Avoiding 'localhost,' if possible */ + /* TODO: Avoid 'localhost,' if possible */ if (gethostname(hostname, 255) != 0) { gaim_debug_warning("bonjour", "Error %d when getting host name. Using \"localhost.\"\n", errno); strcpy(hostname, "localhost"); diff -r 8264f52a1142 -r 6c907830a45f src/protocols/bonjour/jabber.c --- a/src/protocols/bonjour/jabber.c Mon Jul 03 00:37:41 2006 +0000 +++ b/src/protocols/bonjour/jabber.c Mon Jul 03 01:39:51 2006 +0000 @@ -379,7 +379,8 @@ _jabber_parse_and_write_message_to_ui(message, account->gc, gb); } - xmlnode_free(message_node); + if (message_node != NULL) + xmlnode_free(message_node); } static void