Mercurial > pidgin.yaz
diff libpurple/protocols/msn/user.c @ 31434:7bf659dbacee
Clear out the old list of endpoints when we receive a new one. This
will correct the "View Locations" list when we force a location to
sign out.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 02 Dec 2010 06:04:55 +0000 |
parents | 7300259608c9 |
children | 0a58b4f084fb |
line wrap: on
line diff
--- a/libpurple/protocols/msn/user.c Thu Dec 02 05:21:50 2010 +0000 +++ b/libpurple/protocols/msn/user.c Thu Dec 02 06:04:55 2010 +0000 @@ -305,6 +305,22 @@ } void +msn_user_clear_endpoints(MsnUser *user) +{ + MsnUserEndpoint *ep; + GSList *l; + + g_return_if_fail(user != NULL); + + for (l = user->endpoints; l; l = g_slist_delete_link(l, l)) { + ep = l->data; + free_user_endpoint(ep); + } + + user->endpoints = NULL; +} + +void msn_user_set_op(MsnUser *user, MsnListOp list_op) { g_return_if_fail(user != NULL);