Mercurial > pidgin.yaz
comparison libpurple/account.c @ 26604:dc05a7128d88
Various libpurple uninit memory cleanups.
Thanks to Nick Hebner
References #8683
committer: Ethan Blanton <elb@pidgin.im>
author | Nick Hebner <hebnern@gmail.com> |
---|---|
date | Thu, 09 Apr 2009 17:38:45 +0000 |
parents | 584063555949 |
children | 384eaba9974e |
comparison
equal
deleted
inserted
replaced
26603:6b0c6a370cda | 26604:dc05a7128d88 |
---|---|
2785 } | 2785 } |
2786 | 2786 |
2787 void | 2787 void |
2788 purple_accounts_uninit(void) | 2788 purple_accounts_uninit(void) |
2789 { | 2789 { |
2790 GList* account; | |
2790 gpointer handle = purple_accounts_get_handle(); | 2791 gpointer handle = purple_accounts_get_handle(); |
2791 if (save_timer != 0) | 2792 if (save_timer != 0) |
2792 { | 2793 { |
2793 purple_timeout_remove(save_timer); | 2794 purple_timeout_remove(save_timer); |
2794 save_timer = 0; | 2795 save_timer = 0; |
2795 sync_accounts(); | 2796 sync_accounts(); |
2796 } | 2797 } |
2797 | 2798 |
2798 purple_signals_disconnect_by_handle(handle); | 2799 purple_signals_disconnect_by_handle(handle); |
2799 purple_signals_unregister_by_instance(handle); | 2800 purple_signals_unregister_by_instance(handle); |
2800 } | 2801 |
2802 account = purple_accounts_get_all(); | |
2803 while (account) { | |
2804 purple_account_destroy(account->data); | |
2805 account = g_list_delete_link(account, account); | |
2806 } | |
2807 } |