Mercurial > pidgin.yaz
changeset 29370:1386a0e22ac7
Paul Aurich helped me make this cleaner, because he's such a good person!
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 05 Feb 2010 02:39:59 +0000 |
parents | 3e99c4eab63b |
children | 791606778223 |
files | libpurple/protocols/myspace/myspace.c |
diffstat | 1 files changed, 2 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c Fri Feb 05 02:36:30 2010 +0000 +++ b/libpurple/protocols/myspace/myspace.c Fri Feb 05 02:39:59 2010 +0000 @@ -2254,7 +2254,6 @@ static void msim_close(PurpleConnection *gc) { - PurpleAccount *account; GSList *buddies; MsimSession *session; @@ -2262,20 +2261,14 @@ return; } - account = purple_connection_get_account(gc); - /* * Free our protocol-specific buddy data. It almost seems like libpurple * should call our buddy_free prpl callback so that we don't need to do * this... but it doesn't, so we do. */ - buddies = purple_blist_get_buddies(); + buddies = purple_find_buddies(purple_connection_get_account(gc), NULL); while (buddies != NULL) { - PurpleBuddy *buddy = buddies->data; - - if (purple_buddy_get_account(buddy) == account) - msim_buddy_free(buddy); - + msim_buddy_free(buddies->data); buddies = g_slist_delete_link(buddies, buddies); }