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.
--- 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;
}
}