pidgin: c7225ba1: Paul Aurich helped me make this cleaner,...
markdoliner at pidgin.im
markdoliner at pidgin.im
Thu Feb 4 21:45:36 EST 2010
-----------------------------------------------------------------
Revision: c7225ba15472ba524ee80edc66505a2829948b95
Ancestor: 8e3ba482663ce8fdf038560ed6f457899db691b4
Author: markdoliner at pidgin.im
Date: 2010-02-05T02:39:59
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/c7225ba15472ba524ee80edc66505a2829948b95
Modified files:
libpurple/protocols/myspace/myspace.c
ChangeLog:
Paul Aurich helped me make this cleaner, because he's such a good person!
-------------- next part --------------
============================================================
--- libpurple/protocols/myspace/myspace.c 296274819882a50fcb3d2bd207ddc9fbe8c8bc7a
+++ libpurple/protocols/myspace/myspace.c 9723ca13aafe7c501a026cbf8870f08d8284c083
@@ -2254,7 +2254,6 @@ msim_close(PurpleConnection *gc)
static void
msim_close(PurpleConnection *gc)
{
- PurpleAccount *account;
GSList *buddies;
MsimSession *session;
@@ -2262,20 +2261,14 @@ msim_close(PurpleConnection *gc)
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);
}
More information about the Commits
mailing list