Mercurial > pidgin.yaz
diff libpurple/account.c @ 21379:30a532b14003
Document exactly how long the PurpleConnectionErrorInfo pointers given out by
account-error-changed and purple_account_get_current_error() are valid.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Tue, 30 Oct 2007 21:38:14 +0000 |
parents | 872068d10eab |
children | aa52a0a224be |
line wrap: on
line diff
--- a/libpurple/account.c Sun Oct 28 23:18:09 2007 +0000 +++ b/libpurple/account.c Tue Oct 30 21:38:14 2007 +0000 @@ -2309,6 +2309,10 @@ schedule_accounts_save(); + /* Clearing the error ensures that account-error-changed is emitted, + * which is the end of the guarantee that the the error's pointer is + * valid. + */ clear_current_error(account); purple_signal_emit(purple_accounts_get_handle(), "account-removed", account); }