# HG changeset patch # User Daniel Atallah # Date 1186359194 0 # Node ID 9377e741f5b2f8bed334f77f940c18f739c950d7 # Parent 1244b5f43661d48e1b3cdf3d51b719f48135b042# Parent b839f427cbb2b2ddf16f290fc4125342dbf4a2e5 merge of '5e757c10231788ae759b25d6f06694b5555ee046' and '993c7eac0d820398978daf6e1db4d48b7adf4783' diff -r 1244b5f43661 -r 9377e741f5b2 libpurple/protocols/bonjour/mdns_common.c --- a/libpurple/protocols/bonjour/mdns_common.c Mon Aug 06 00:00:45 2007 +0000 +++ b/libpurple/protocols/bonjour/mdns_common.c Mon Aug 06 00:13:14 2007 +0000 @@ -111,5 +111,6 @@ _mdns_stop(data); gc = purple_account_get_connection(data->account); - purple_input_remove(gc->inpa); + if (gc->inpa > 0) + purple_input_remove(gc->inpa); } diff -r 1244b5f43661 -r 9377e741f5b2 libpurple/protocols/bonjour/mdns_howl.c --- a/libpurple/protocols/bonjour/mdns_howl.c Mon Aug 06 00:00:45 2007 +0000 +++ b/libpurple/protocols/bonjour/mdns_howl.c Mon Aug 06 00:13:14 2007 +0000 @@ -145,7 +145,7 @@ break; case SW_DISCOVERY_BROWSE_REMOVE_SERVICE: purple_debug_info("bonjour", "_browser_reply --> Remove service\n"); - gb = purple_find_buddy((PurpleAccount*)extra, name); + gb = purple_find_buddy(account, name); if (gb != NULL) { bonjour_buddy_delete(gb->proto_data); @@ -258,14 +258,14 @@ break; } + /* Free the memory used by temp data */ + sw_text_record_fina(dns_data); + if (publish_result != SW_OKAY) { - purple_debug_error("bonjour", "Unable to publish or change the status of the _presence._tcp service.\n"); + purple_debug_error("bonjour", "Unable to publish or change the status of the " ICHAT_SERVICE " service.\n"); return FALSE; } - /* Free the memory used by temp data */ - sw_text_record_fina(dns_data); - return TRUE; } @@ -283,7 +283,7 @@ guint _mdns_register_to_mainloop(BonjourDnsSd *data) { HowlSessionImplData *idata = data->mdns_impl_data; - g_return_val_if_fail(idata != NULL, FALSE); + g_return_val_if_fail(idata != NULL, 0); return purple_input_add(sw_discovery_socket(idata->session), PURPLE_INPUT_READ, _mdns_handle_event, idata->session); diff -r 1244b5f43661 -r 9377e741f5b2 libpurple/protocols/bonjour/mdns_win32.c --- a/libpurple/protocols/bonjour/mdns_win32.c Mon Aug 06 00:00:45 2007 +0000 +++ b/libpurple/protocols/bonjour/mdns_win32.c Mon Aug 06 00:13:14 2007 +0000 @@ -340,7 +340,7 @@ guint _mdns_register_to_mainloop(BonjourDnsSd *data) { Win32SessionImplData *idata = data->mdns_impl_data; - g_return_val_if_fail(idata != NULL, FALSE); + g_return_val_if_fail(idata != NULL, 0); return purple_input_add(DNSServiceRefSockFD(idata->browser), PURPLE_INPUT_READ, _mdns_handle_event, idata->browser);