| 2456 |
2456 |
| 2457 } |
2457 } |
| 2458 |
2458 |
| 2459 static void yahoo_close(GaimConnection *gc) { |
2459 static void yahoo_close(GaimConnection *gc) { |
| 2460 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; |
2460 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; |
| |
2461 GSList *l; |
| |
2462 |
| |
2463 for (l = yd->confs; l; l = l->next) { |
| |
2464 GaimConversation *conv = l->data; |
| |
2465 |
| |
2466 yahoo_conf_leave(yd, gaim_conversation_get_name(conv), |
| |
2467 gaim_connection_get_display_name(gc), |
| |
2468 gaim_conv_chat_get_users(GAIM_CONV_CHAT(conv))); |
| |
2469 } |
| |
2470 g_slist_free(yd->confs); |
| 2461 |
2471 |
| 2462 g_hash_table_destroy(yd->friends); |
2472 g_hash_table_destroy(yd->friends); |
| 2463 g_slist_free(yd->confs); |
|
| 2464 if (yd->chat_name) |
2473 if (yd->chat_name) |
| 2465 g_free(yd->chat_name); |
2474 g_free(yd->chat_name); |
| 2466 |
2475 |
| 2467 if (yd->cookie_y) |
2476 if (yd->cookie_y) |
| 2468 g_free(yd->cookie_y); |
2477 g_free(yd->cookie_y); |