diff src/protocols/oscar/oscar.c @ 13253:87a7c3077c19

[gaim-migrate @ 15619] More cleaning up of oscar. Renamed some functions to be more clear. Got rid of some stuff that wasn't used. Inlined some small things in conn.c that were only used once. The goals of all this are 1. Non-blocking I/O for all connections 2. p2p stuff won't use the same struct as oscar connections, because that's stupid 3. The oscar PRPL should be less scary committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 12 Feb 2006 21:27:04 +0000
parents 2871c385c45a
children e9802db22b06
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Sun Feb 12 19:27:57 2006 +0000
+++ b/src/protocols/oscar/oscar.c	Sun Feb 12 21:27:04 2006 +0000
@@ -1842,8 +1842,7 @@
 	}
 	od->buddyinfo = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, oscar_free_buddyinfo);
 
-	sess = g_new0(OscarSession, 1);
-	aim_session_init(sess, TRUE);
+	sess = oscar_session_new();
 	/*
 	 * We need an immediate queue because we don't use a while-loop
 	 * to see if things need to be sent.
@@ -1937,8 +1936,7 @@
 		gaim_timeout_remove(od->getinfotimer);
 	gaim_prefs_disconnect_by_handle(gc);
 
-	aim_session_kill(od->sess);
-	g_free(od->sess);
+	oscar_session_destroy(od->sess);
 	od->sess = NULL;
 	g_free(gc->proto_data);
 	gc->proto_data = NULL;