# HG changeset patch # User Mark Doliner # Date 1136960432 0 # Node ID 74eb10cead7fb9c5f00587398d4904d04607962e # Parent bd80fb1e8406de74b230387ee0c74b4659964c18 [gaim-migrate @ 15174] Fix a crash in the idle maker which can be reproduced by 1. Set an account idle 2. Sign off the account 3. Unset idle for all accounts committer: Tailor Script diff -r bd80fb1e8406 -r 74eb10cead7f plugins/idle.c --- a/plugins/idle.c Wed Jan 11 06:16:33 2006 +0000 +++ b/plugins/idle.c Wed Jan 11 06:20:32 2006 +0000 @@ -299,10 +299,21 @@ actions }; +static void +signing_off_cb(GaimConnection *gc, void *data) +{ + GaimAccount *account; + + account = gaim_connection_get_account(gc); + idled_accts = g_list_remove(idled_accts, account); +} static void init_plugin(GaimPlugin *plugin) { + gaim_signal_connect(gaim_connections_get_handle(), "signing-off", + plugin, + GAIM_CALLBACK(signing_off_cb), NULL); }