2005-08-16 Mikael Hallendal <micke@imendio.com>
authorhallski <hallski>
Tue, 16 Aug 2005 00:17:41 +0000
changeset 128 a1f41ebde5c4
parent 127 e22a83a9ba54
child 129 c508a7de3eec
2005-08-16 Mikael Hallendal <micke@imendio.com> * NEWS: * configure.in: - Release 1.0.1 * loudmouth/lm-connection.c: (connection_free): - Unref context if it is set.
ChangeLog
NEWS
configure.in
loudmouth/lm-connection.c
--- a/ChangeLog	Sun Aug 14 12:48:42 2005 +0000
+++ b/ChangeLog	Tue Aug 16 00:17:41 2005 +0000
@@ -1,3 +1,12 @@
+2005-08-16  Mikael Hallendal  <micke@imendio.com>
+
+	* NEWS:
+	* configure.in:
+	- Release 1.0.1
+
+	* loudmouth/lm-connection.c: (connection_free):
+	- Unref context if it is set.
+
 2005-08-14  Mikael Hallendal  <micke@imendio.com>
 
 	* NEWS:
--- a/NEWS	Sun Aug 14 12:48:42 2005 +0000
+++ b/NEWS	Tue Aug 16 00:17:41 2005 +0000
@@ -1,3 +1,7 @@
+Changes in 1.0.1:
+-----------------
+* Unref contexts when freeing the connection          (Mikael Hallendal)
+
 Changes in 1.0:
 ---------------
 * Fix crash when connection goes down using SSL, LM-3 (Mikael Hallendal)
--- a/configure.in	Sun Aug 14 12:48:42 2005 +0000
+++ b/configure.in	Tue Aug 16 00:17:41 2005 +0000
@@ -2,7 +2,7 @@
 
 AM_CONFIG_HEADER(config.h)
 
-AM_INIT_AUTOMAKE(loudmouth, 1.0)
+AM_INIT_AUTOMAKE(loudmouth, 1.0.1)
 
 AM_MAINTAINER_MODE
 
--- a/loudmouth/lm-connection.c	Sun Aug 14 12:48:42 2005 +0000
+++ b/loudmouth/lm-connection.c	Tue Aug 16 00:17:41 2005 +0000
@@ -217,7 +217,12 @@
 	}
 
 	g_queue_free (connection->incoming_messages);
-	g_free (connection);
+        
+        if (connection->context) {
+                g_main_context_unref (connection->context);
+        }
+        
+        g_free (connection);
 }
 
 static void
@@ -1211,7 +1216,7 @@
 	connection = lm_connection_new (server);
 	connection->context = context;
 
-	g_main_context_ref (connection->context);
+        g_main_context_ref (connection->context);
 
 	return connection;
 }