Mercurial > pidgin
diff plugins/autorecon.c @ 7372:4ce6952d7908
[gaim-migrate @ 7967]
fix an autorecon segfault
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 29 Oct 2003 21:44:11 +0000 |
parents | cc1d09631513 |
children | 217643616a74 |
line wrap: on
line diff
--- a/plugins/autorecon.c Wed Oct 29 20:09:50 2003 +0000 +++ b/plugins/autorecon.c Wed Oct 29 21:44:11 2003 +0000 @@ -28,13 +28,13 @@ 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 @@ info->timeout = g_timeout_add(info->delay, do_signon, account); } else if (info != NULL) { g_hash_table_remove(hash, account); - g_free(info); } }