--- a/libpurple/protocols/jabber/facebook_roster.c Wed May 07 16:36:36 2014 +0200 +++ b/libpurple/protocols/jabber/facebook_roster.c Wed May 07 17:11:45 2014 +0200 @@ -37,6 +37,10 @@ PurpleBuddy *buddy; const gchar *jid; + if (js->facebook_roster_cleanup_performed) + return; + js->facebook_roster_cleanup_performed = TRUE; + /* mark all local buddies as "to be removed" */ remove_buddies = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);