Mercurial > pidgin
changeset 12093:78ca702b3338
[gaim-migrate @ 14390]
This has been crashing for me since
http://cvs.sourceforge.net/viewcvs.py/gaim/gaim/src/protocols/bonjour/dns_sd.c?r1=1.11&r2=1.12
sw_discovery_init() does not allocate the session, according to
http://www.porchdogsoft.com/products/howl/docs/discovery.html#sw_discovery_init
"Creates a new discovery session. session is allocated by the user
and filled in by Howl."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 14 Nov 2005 23:37:06 +0000 |
parents | 10f210d18310 |
children | 08dd8a4b6bea |
files | src/protocols/bonjour/dns_sd.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/bonjour/dns_sd.c Mon Nov 14 23:24:17 2005 +0000 +++ b/src/protocols/bonjour/dns_sd.c Mon Nov 14 23:37:06 2005 +0000 @@ -344,8 +344,10 @@ gc = gaim_account_get_connection(account); /* Initialize the dns-sd data and session */ + data->session = g_malloc(sizeof(sw_discovery)); if (sw_discovery_init(data->session) != SW_OKAY) { + free(data->session); data->session = NULL; gaim_debug_error("bonjour", "Unable to initialize an mDNS session.\n"); return FALSE; @@ -388,4 +390,7 @@ account = data->account; gc = gaim_account_get_connection(account); gaim_input_remove(gc->inpa); + + g_free(data->session); + data->session = NULL; }