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