# HG changeset patch # User Mark Doliner # Date 1245364812 0 # Node ID e6eee2b3417cbc919e9b6826027b2a5bcacdf800 # Parent d3b6776186ce573c45f186a97ea096017fbba815 Pass a handle to purple_proxy_connect() when making this connection. This causes the proxy attempt to be canceled and freed if the user signs off before the connection is established. diff -r d3b6776186ce -r e6eee2b3417c libpurple/protocols/yahoo/yahoo.c --- a/libpurple/protocols/yahoo/yahoo.c Thu Jun 18 22:21:59 2009 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Thu Jun 18 22:40:12 2009 +0000 @@ -2647,7 +2647,7 @@ p2p_data->source = -1; /* connect to host */ - if((purple_proxy_connect(NULL, account, host_ip, YAHOO_PAGER_PORT_P2P, yahoo_p2p_init_cb, p2p_data))==NULL) { + if((purple_proxy_connect(gc, account, host_ip, YAHOO_PAGER_PORT_P2P, yahoo_p2p_init_cb, p2p_data))==NULL) { purple_debug_info("yahoo","p2p: Connection to %s failed\n", host_ip); g_free(p2p_data->host_ip); g_free(p2p_data->host_username);