int jabber_done(){ if (stream){ stream_destroy(stream); stream=NULL; } if (jabber_source){ g_source_destroy(jabber_source); } g_free(register_instructions); g_free(search_instructions); g_free(gateway_desc); g_free(gateway_prompt); stream_del_destroy_handler(jabber_stream_destroyed); return 0; }
int sessions_done(){ guint s; GList *it; s=g_hash_table_size(sessions_jid); debug(L_("%u sessions in hash table"),s); g_hash_table_foreach_remove(sessions_jid,sessions_hash_remove_func,NULL); g_hash_table_destroy(sessions_jid); for(it=g_list_first(gg_servers);it;it=g_list_next(it)) g_free(it->data); g_list_free(gg_servers); stream_del_destroy_handler(sessions_stream_destroyed); return 0; }