# HG changeset patch # User hallski # Date 1124151461 0 # Node ID a1f41ebde5c454555aa1afe071b34b840ce6c6e3 # Parent e22a83a9ba54de7615e44520d7d9f35290056d1b 2005-08-16 Mikael Hallendal * NEWS: * configure.in: - Release 1.0.1 * loudmouth/lm-connection.c: (connection_free): - Unref context if it is set. diff -r e22a83a9ba54 -r a1f41ebde5c4 ChangeLog --- 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 + + * NEWS: + * configure.in: + - Release 1.0.1 + + * loudmouth/lm-connection.c: (connection_free): + - Unref context if it is set. + 2005-08-14 Mikael Hallendal * NEWS: diff -r e22a83a9ba54 -r a1f41ebde5c4 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) diff -r e22a83a9ba54 -r a1f41ebde5c4 configure.in --- 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 diff -r e22a83a9ba54 -r a1f41ebde5c4 loudmouth/lm-connection.c --- 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; }