2005-05-05 Mikael Hallendal <micke@imendio.com>
authorhallski <hallski>
Thu, 05 May 2005 18:58:44 +0000
changeset 116 13c951a33aca
parent 115 f2a921e232e5
child 117 5f6f1f273d6a
2005-05-05 Mikael Hallendal <micke@imendio.com> * loudmouth/lm-connection.c: (connection_free): - Unref LmSSL when freeing connection. Reported by Daniel Lavalliere. - Fixes LM-4.
ChangeLog
loudmouth/lm-connection.c
--- a/ChangeLog	Sun Apr 24 11:47:48 2005 +0000
+++ b/ChangeLog	Thu May 05 18:58:44 2005 +0000
@@ -1,3 +1,9 @@
+2005-05-05  Mikael Hallendal  <micke@imendio.com>
+
+	* loudmouth/lm-connection.c: (connection_free):
+	- Unref LmSSL when freeing connection. Reported by Daniel Lavalliere.
+	- Fixes LM-4.
+
 2005-04-24  Mikael Hallendal  <micke@imendio.com>
 
 	* loudmouth/lm-connection.c: (connection_free):
--- a/loudmouth/lm-connection.c	Sun Apr 24 11:47:48 2005 +0000
+++ b/loudmouth/lm-connection.c	Thu May 05 18:58:44 2005 +0000
@@ -212,6 +212,10 @@
 		lm_message_unref (m);
 	}
 
+	if (connection->ssl) {
+		lm_ssl_unref (connection->ssl);
+	}
+
 	g_queue_free (connection->incoming_messages);
 	g_free (connection);
 }
@@ -324,9 +328,13 @@
 				    NULL)) {
 			shutdown (connection->fd, SHUT_RDWR);
 			close (connection->fd);
+		
 			connection_do_close (connection);
 			connection->fd = -1;
+			
 			g_io_channel_unref(connection->io_channel);
+			connection->io_channel = NULL;
+			
 			return FALSE;
 		}
 	}