diff src/protocols/msn/httpconn.c @ 10504:1a97d5e88d12

[gaim-migrate @ 11796] Lots of things here: - Several memory leak fixes - A few invalid memory access fixes - Fix a yahoo crash going idle when away - Fix Add user in chats to actually fill in the screenname - Add gaim_account_{get,set}_enabled to perl - Fix command priorities (fixes /me in IRC) - Fix MSN notification server transfer to be quiet about it - Fix MSN blist sync if user has insane friendly name - Make the docklet less crash-happy if it fails to embed in 3 seconds - Only probe for native plugins with the correct file extension - 1 typo fix :) ... and quite possibly something else I forgot. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 11 Jan 2005 17:25:06 +0000
parents bcfea6c3d5c9
children ace8cd0de6ea
line wrap: on
line diff
--- a/src/protocols/msn/httpconn.c	Tue Jan 11 02:00:44 2005 +0000
+++ b/src/protocols/msn/httpconn.c	Tue Jan 11 17:25:06 2005 +0000
@@ -68,6 +68,15 @@
 	if (httpconn->connected)
 		msn_httpconn_disconnect(httpconn);
 
+	if (httpconn->full_session_id != NULL)
+		g_free(httpconn->full_session_id);
+
+	if (httpconn->session_id != NULL)
+		g_free(httpconn->session_id);
+
+	if (httpconn->host != NULL)
+		g_free(httpconn->host);
+
 	g_free(httpconn);
 }
 
@@ -669,17 +678,17 @@
 
 		if (!wasted)
 		{
-			if (httpconn->full_session_id != NULL);
+			if (httpconn->full_session_id != NULL)
 				g_free(httpconn->full_session_id);
 
 			httpconn->full_session_id = full_session_id;
 
-			if (httpconn->session_id != NULL);
+			if (httpconn->session_id != NULL)
 				g_free(httpconn->session_id);
 
 			httpconn->session_id = session_id;
 
-			if (httpconn->host != NULL);
+			if (httpconn->host != NULL)
 				g_free(httpconn->host);
 
 			httpconn->host = gw_ip;
@@ -689,6 +698,7 @@
 			MsnServConn *servconn;
 
 			/* It's going to die. */
+			/* poor thing */
 
 			servconn = httpconn->servconn;
 
@@ -696,6 +706,7 @@
 				servconn->wasted = TRUE;
 
 			g_free(full_session_id);
+			g_free(session_id);
 			g_free(gw_ip);
 		}
 	}