From: Nathan W. <fac...@us...> - 2003-10-29 21:44:14
|
Update of /cvsroot/gaim/gaim/plugins In directory sc8-pr-cvs1:/tmp/cvs-serv2825/plugins Modified Files: autorecon.c Log Message: fix an autorecon segfault Index: autorecon.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/autorecon.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -p -r1.35 -r1.36 --- autorecon.c 1 Oct 2003 22:14:54 -0000 1.35 +++ autorecon.c 29 Oct 2003 21:44:11 -0000 1.36 @@ -28,13 +28,13 @@ static gboolean do_signon(gpointer data) if (g_list_index(gaim_accounts_get_all(), account) < 0) return FALSE; + if(info) + info->timeout = 0; + gaim_debug(GAIM_DEBUG_INFO, "autorecon", "calling gaim_account_connect\n"); gaim_account_connect(account); gaim_debug(GAIM_DEBUG_INFO, "autorecon", "done calling gaim_account_connect\n"); - if(info) - info->timeout = 0; - return FALSE; } @@ -56,7 +56,6 @@ static void reconnect(GaimConnection *gc info->timeout = g_timeout_add(info->delay, do_signon, account); } else if (info != NULL) { g_hash_table_remove(hash, account); - g_free(info); } } |