From: Gary K. <amc...@us...> - 2005-01-09 08:17:31
|
Update of /cvsroot/gaim-bnet/gaim-bnet/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6244/src Modified Files: conn.c Log Message: Well I managed to kill the segfault after disconnecting/canceling.. but we can't seem to connect after we disconnect/cancel.. Index: conn.c =================================================================== RCS file: /cvsroot/gaim-bnet/gaim-bnet/src/conn.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** conn.c 9 Jan 2005 04:03:38 -0000 1.4 --- conn.c 9 Jan 2005 08:17:22 -0000 1.5 *************** *** 244,254 **** BNetConn *conn; ! gaim_debug_info("bnet", "bnet_conn_close\n"); ! conn = BNET_CONN(gc->proto_data); ! if (!conn) ! return; g_free(conn); conn = NULL; --- 244,256 ---- BNetConn *conn; ! g_return_if_fail(gc); ! gaim_debug_info("bnet", "bnet_conn_close\n"); ! /* we need to remote the input cb that we created... */ ! if(gc->inpa > 0) ! gaim_input_remove(gc->inpa); + conn = BNET_CONN(gc->proto_data); g_free(conn); conn = NULL; |