comparison src/protocols/msn/session.c @ 5518:bf2a7a7b739d

[gaim-migrate @ 5918] Reworked the group support. You should now be able to delete groups by dragging a user into them and then back out. I stress _should_. This will likely have bugs. I cleaned up the ones I found, I think, but I'm not 100% confident here :) Please test! Preferably on test accounts, but it won't kill things, just reorder stuff. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 25 May 2003 22:51:19 +0000
parents 04e1e40b99b0
children 187c740f2a4e
comparison
equal deleted inserted replaced
5517:e9b9fbf89c42 5518:bf2a7a7b739d
34 34
35 session->account = account; 35 session->account = account;
36 session->dispatch_server = g_strdup(server); 36 session->dispatch_server = g_strdup(server);
37 session->dispatch_port = port; 37 session->dispatch_port = port;
38 38
39 session->users = msn_users_new(); 39 session->users = msn_users_new();
40 session->groups = msn_groups_new();
40 41
41 return session; 42 return session;
42 } 43 }
43 44
44 void 45 void
56 msn_switchboard_destroy(session->switches->data); 57 msn_switchboard_destroy(session->switches->data);
57 58
58 while (session->lists.forward) 59 while (session->lists.forward)
59 msn_user_destroy(session->lists.forward->data); 60 msn_user_destroy(session->lists.forward->data);
60 61
61 if (session->group_ids) g_hash_table_destroy(session->group_ids);
62 if (session->group_names) g_hash_table_destroy(session->group_names);
63
64 g_slist_free(session->lists.allow); 62 g_slist_free(session->lists.allow);
65 g_slist_free(session->lists.block); 63 g_slist_free(session->lists.block);
66 64
65 msn_groups_destroy(session->groups);
67 msn_users_destroy(session->users); 66 msn_users_destroy(session->users);
68 67
69 g_free(session->passport_info.kv); 68 g_free(session->passport_info.kv);
70 g_free(session->passport_info.sid); 69 g_free(session->passport_info.sid);
71 g_free(session->passport_info.mspauth); 70 g_free(session->passport_info.mspauth);